private static function GeoTimezone::tryGetTzIndex2 in Geo Time Zone 8
Same name and namespace in other branches
- 8.3 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex2()
- 8.2 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex2()
- 6.2 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex2()
- 6 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex2()
- 7.2 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex2()
- 7 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex2()
1 call to GeoTimezone::tryGetTzIndex2()
File
- src/
GeoTimezone.php, line 13076 - Contains \Drupal\geotimezone\GeoTimezoneMap.
Class
- GeoTimezone
- Determine the timezone based on coordinates.
Namespace
Drupal\geotimezoneCode
private static function tryGetTzIndex2($lat, $lng) {
if ($lat < -4.122895) {
if ($lng < -67.557743) {
if ($lat < -10.505639) {
if ($lng < -71.018164) {
return 164;
}
else {
if ($lat < -12.73407) {
if (static::$polygon[164]
->isInside($lat, $lng)) {
return 190;
}
else {
return 164;
}
}
else {
if ($lng < -69.287953) {
if (static::$polygon[165]
->isInside($lat, $lng)) {
return 164;
}
if (static::$polygon[166]
->isInside($lat, $lng)) {
return 190;
}
else {
return 180;
}
}
else {
if (static::$polygon[167]
->isInside($lat, $lng)) {
return 164;
}
if (static::$polygon[168]
->isInside($lat, $lng)) {
return 180;
}
else {
return 190;
}
}
}
}
}
else {
if ($lng < -71.018164) {
if ($lat < -7.314267) {
if ($lng < -72.748374) {
if ($lat < -8.909953) {
if (static::$polygon[169]
->isInside($lat, $lng)) {
return 180;
}
else {
return 164;
}
}
else {
if ($lng < -73.613479) {
if (static::$polygon[170]
->isInside($lat, $lng)) {
return 180;
}
else {
return 164;
}
}
else {
if (static::$polygon[171]
->isInside($lat, $lng)) {
return 164;
}
if (static::$polygon[172]
->isInside($lat, $lng)) {
return 241;
}
else {
return 180;
}
}
}
}
else {
if (static::$polygon[173]
->isInside($lat, $lng)) {
return 164;
}
if (static::$polygon[174]
->isInside($lat, $lng)) {
return 241;
}
else {
return 180;
}
}
}
else {
if ($lng < -72.748374) {
if ($lat < -5.718581) {
if (static::$polygon[175]
->isInside($lat, $lng)) {
return 180;
}
if (static::$polygon[176]
->isInside($lat, $lng)) {
return 241;
}
else {
return 164;
}
}
else {
if (static::$polygon[177]
->isInside($lat, $lng)) {
return 241;
}
else {
return 164;
}
}
}
else {
if ($lat < -5.718581) {
return 241;
}
else {
if ($lng < -71.883269) {
if (static::$polygon[178]
->isInside($lat, $lng)) {
return 241;
}
else {
return 164;
}
}
else {
if (static::$polygon[179]
->isInside($lat, $lng)) {
return 241;
}
else {
return 164;
}
}
}
}
}
}
else {
if ($lat < -7.314267) {
if (static::$polygon[180]
->isInside($lat, $lng)) {
return 7;
}
if (static::$polygon[181]
->isInside($lat, $lng)) {
return 164;
}
if (static::$polygon[182]
->isInside($lat, $lng)) {
return 241;
}
else {
return 180;
}
}
else {
if ($lng < -69.287953) {
if ($lat < -5.718581) {
return 241;
}
else {
if ($lng < -70.153058) {
if ($lat < -4.920738) {
return 241;
}
else {
if ($lng < -70.585611) {
if (static::$polygon[183]
->isInside($lat, $lng)) {
return 164;
}
else {
return 241;
}
}
else {
if (static::$polygon[184]
->isInside($lat, $lng)) {
return 241;
}
if (static::$polygon[185]
->isInside($lat, $lng)) {
return 241;
}
else {
return 164;
}
}
}
}
else {
if (static::$polygon[186]
->isInside($lat, $lng)) {
return 7;
}
if (static::$polygon[187]
->isInside($lat, $lng)) {
return 164;
}
if (static::$polygon[188]
->isInside($lat, $lng)) {
return 164;
}
if (static::$polygon[189]
->isInside($lat, $lng)) {
return 390;
}
else {
return 241;
}
}
}
}
else {
if (static::$polygon[190]
->isInside($lat, $lng)) {
return 241;
}
else {
return 7;
}
}
}
}
}
}
else {
if ($lng < -59.818611) {
if ($lat < -9.542698) {
if ($lng < -63.688177) {
if ($lat < -12.2526) {
if (static::$polygon[191]
->isInside($lat, $lng)) {
return 341;
}
else {
return 190;
}
}
else {
if ($lng < -65.62296000000001) {
if ($lat < -10.897649) {
return 190;
}
else {
if ($lng < -66.590351) {
if (static::$polygon[192]
->isInside($lat, $lng)) {
return 7;
}
if (static::$polygon[193]
->isInside($lat, $lng)) {
return 180;
}
if (static::$polygon[194]
->isInside($lat, $lng)) {
return 341;
}
else {
return 190;
}
}
else {
if (static::$polygon[195]
->isInside($lat, $lng)) {
return 7;
}
if (static::$polygon[196]
->isInside($lat, $lng)) {
return 7;
}
if (static::$polygon[197]
->isInside($lat, $lng)) {
return 190;
}
else {
return 341;
}
}
}
}
else {
if ($lat < -10.897649) {
if (static::$polygon[198]
->isInside($lat, $lng)) {
return 341;
}
else {
return 190;
}
}
else {
if (static::$polygon[199]
->isInside($lat, $lng)) {
return 190;
}
else {
return 341;
}
}
}
}
}
else {
if ($lat < -12.2526) {
if ($lng < -61.753394) {
if (static::$polygon[200]
->isInside($lat, $lng)) {
return 341;
}
else {
return 190;
}
}
else {
if ($lat < -13.607551) {
if (static::$polygon[201]
->isInside($lat, $lng)) {
return 341;
}
if (static::$polygon[202]
->isInside($lat, $lng)) {
return 363;
}
else {
return 190;
}
}
else {
if (static::$polygon[203]
->isInside($lat, $lng)) {
return 190;
}
if (static::$polygon[204]
->isInside($lat, $lng)) {
return 363;
}
else {
return 341;
}
}
}
}
else {
if (static::$polygon[205]
->isInside($lat, $lng)) {
return 341;
}
else {
return 363;
}
}
}
}
else {
if ($lng < -63.688177) {
if ($lat < -6.832796) {
if ($lng < -65.62296000000001) {
if (static::$polygon[206]
->isInside($lat, $lng)) {
return 180;
}
if (static::$polygon[207]
->isInside($lat, $lng)) {
return 341;
}
if (static::$polygon[208]
->isInside($lat, $lng)) {
return 341;
}
else {
return 7;
}
}
else {
if (static::$polygon[209]
->isInside($lat, $lng)) {
return 341;
}
else {
return 7;
}
}
}
else {
return 7;
}
}
else {
if (static::$polygon[210]
->isInside($lat, $lng)) {
return 7;
}
if (static::$polygon[211]
->isInside($lat, $lng)) {
return 363;
}
else {
return 341;
}
}
}
}
else {
if ($lat < -9.542698) {
return 363;
}
else {
if ($lat < -6.832796) {
if ($lng < -58.062149) {
if (static::$polygon[212]
->isInside($lat, $lng)) {
return 310;
}
if (static::$polygon[213]
->isInside($lat, $lng)) {
return 363;
}
else {
return 7;
}
}
else {
if (static::$polygon[214]
->isInside($lat, $lng)) {
return 363;
}
else {
return 310;
}
}
}
else {
if (static::$polygon[215]
->isInside($lat, $lng)) {
return 310;
}
else {
return 7;
}
}
}
}
}
}
else {
if ($lng < -66.86983499999999) {
if ($lat < 0.9408260000000001) {
if ($lng < -70.67421) {
if ($lat < -1.591035) {
if ($lng < -72.576397) {
if (static::$polygon[216]
->isInside($lat, $lng)) {
return 390;
}
else {
return 164;
}
}
else {
if ($lat < -2.856965) {
if (static::$polygon[217]
->isInside($lat, $lng)) {
return 390;
}
else {
return 164;
}
}
else {
if (static::$polygon[218]
->isInside($lat, $lng)) {
return 164;
}
else {
return 390;
}
}
}
}
else {
if (static::$polygon[219]
->isInside($lat, $lng)) {
return 164;
}
else {
return 390;
}
}
}
else {
if ($lat < -1.591035) {
if (static::$polygon[220]
->isInside($lat, $lng)) {
return 7;
}
if (static::$polygon[221]
->isInside($lat, $lng)) {
return 164;
}
if (static::$polygon[222]
->isInside($lat, $lng)) {
return 164;
}
else {
return 390;
}
}
else {
if (static::$polygon[223]
->isInside($lat, $lng)) {
return 390;
}
else {
return 7;
}
}
}
}
else {
if ($lng < -70.67421) {
return 390;
}
else {
if ($lat < 3.472686) {
if ($lng < -68.77202200000001) {
if (static::$polygon[224]
->isInside($lat, $lng)) {
return 7;
}
else {
return 390;
}
}
else {
if ($lat < 2.206756) {
if (static::$polygon[225]
->isInside($lat, $lng)) {
return 7;
}
if (static::$polygon[226]
->isInside($lat, $lng)) {
return 397;
}
else {
return 390;
}
}
else {
if (static::$polygon[227]
->isInside($lat, $lng)) {
return 397;
}
else {
return 390;
}
}
}
}
else {
if (static::$polygon[228]
->isInside($lat, $lng)) {
return 397;
}
else {
return 390;
}
}
}
}
}
else {
if ($lat < -2.231925) {
if (static::$polygon[229]
->isInside($lat, $lng)) {
return 7;
}
else {
return 310;
}
}
else {
if ($lng < -61.587761) {
if ($lat < 1.88631) {
if ($lng < -64.228798) {
if (static::$polygon[230]
->isInside($lat, $lng)) {
return 397;
}
else {
return 7;
}
}
else {
if ($lat < -0.172808) {
if (static::$polygon[231]
->isInside($lat, $lng)) {
return 349;
}
else {
return 7;
}
}
else {
if (static::$polygon[232]
->isInside($lat, $lng)) {
return 349;
}
if (static::$polygon[233]
->isInside($lat, $lng)) {
return 397;
}
else {
return 7;
}
}
}
}
else {
if ($lng < -64.228798) {
if (static::$polygon[234]
->isInside($lat, $lng)) {
return 349;
}
if (static::$polygon[235]
->isInside($lat, $lng)) {
return 349;
}
else {
return 397;
}
}
else {
if ($lat < 3.945428) {
if ($lng < -62.908279) {
if ($lat < 2.915869) {
if (static::$polygon[236]
->isInside($lat, $lng)) {
return 7;
}
if (static::$polygon[237]
->isInside($lat, $lng)) {
return 349;
}
else {
return 397;
}
}
else {
if (static::$polygon[238]
->isInside($lat, $lng)) {
return 397;
}
if (static::$polygon[239]
->isInside($lat, $lng)) {
return 397;
}
if (static::$polygon[240]
->isInside($lat, $lng)) {
return 397;
}
if (static::$polygon[241]
->isInside($lat, $lng)) {
return 397;
}
if (static::$polygon[242]
->isInside($lat, $lng)) {
return 397;
}
else {
return 349;
}
}
}
else {
if (static::$polygon[243]
->isInside($lat, $lng)) {
return 7;
}
if (static::$polygon[244]
->isInside($lat, $lng)) {
return 397;
}
else {
return 349;
}
}
}
else {
if (static::$polygon[245]
->isInside($lat, $lng)) {
return 349;
}
if (static::$polygon[246]
->isInside($lat, $lng)) {
return 349;
}
if (static::$polygon[247]
->isInside($lat, $lng)) {
return 349;
}
if (static::$polygon[248]
->isInside($lat, $lng)) {
return 349;
}
else {
return 397;
}
}
}
}
}
else {
if ($lat < 1.88631) {
if ($lng < -58.946724) {
if ($lat < -0.172808) {
if (static::$polygon[249]
->isInside($lat, $lng)) {
return 349;
}
else {
return 7;
}
}
else {
if (static::$polygon[250]
->isInside($lat, $lng)) {
return 7;
}
if (static::$polygon[251]
->isInside($lat, $lng)) {
return 298;
}
if (static::$polygon[252]
->isInside($lat, $lng)) {
return 310;
}
else {
return 349;
}
}
}
else {
if ($lat < -0.172808) {
if (static::$polygon[253]
->isInside($lat, $lng)) {
return 310;
}
else {
return 7;
}
}
else {
if (static::$polygon[254]
->isInside($lat, $lng)) {
return 7;
}
if (static::$polygon[255]
->isInside($lat, $lng)) {
return 298;
}
if (static::$polygon[256]
->isInside($lat, $lng)) {
return 298;
}
if (static::$polygon[257]
->isInside($lat, $lng)) {
return 349;
}
else {
return 310;
}
}
}
}
else {
if ($lng < -58.946724) {
if ($lat < 3.945428) {
if (static::$polygon[258]
->isInside($lat, $lng)) {
return 349;
}
else {
return 298;
}
}
else {
if ($lng < -60.267242) {
if (static::$polygon[259]
->isInside($lat, $lng)) {
return 298;
}
if (static::$polygon[260]
->isInside($lat, $lng)) {
return 397;
}
else {
return 349;
}
}
else {
if (static::$polygon[261]
->isInside($lat, $lng)) {
return 349;
}
else {
return 298;
}
}
}
}
else {
if ($lat < 3.945428) {
if ($lng < -57.626205) {
if (static::$polygon[262]
->isInside($lat, $lng)) {
return 200;
}
else {
return 298;
}
}
else {
if ($lat < 2.915869) {
if (static::$polygon[263]
->isInside($lat, $lng)) {
return 200;
}
if (static::$polygon[264]
->isInside($lat, $lng)) {
return 310;
}
if (static::$polygon[265]
->isInside($lat, $lng)) {
return 310;
}
else {
return 298;
}
}
else {
if (static::$polygon[266]
->isInside($lat, $lng)) {
return 298;
}
else {
return 200;
}
}
}
}
else {
if (static::$polygon[267]
->isInside($lat, $lng)) {
return 298;
}
else {
return 200;
}
}
}
}
}
}
}
}
}