private static function GeoTimezone::tryGetTzIndex3 in Geo Time Zone 7
Same name and namespace in other branches
- 8.3 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex3()
- 8 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex3()
- 8.2 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex3()
- 6.2 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex3()
- 6 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex3()
- 7.2 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex3()
1 call to GeoTimezone::tryGetTzIndex3()
File
- src/
GeoTimezone.php, line 12512 - Contains \Drupal\geotimezone\GeoTimezoneMap.
Class
- GeoTimezone
- Determine the timezone based on coordinates.
Namespace
Drupal\geotimezoneCode
private static function tryGetTzIndex3($lat, $lng) {
if ($lat < -14.962502) {
if ($lng < -64.15806600000001) {
if ($lng < -68.814156) {
if ($lat < -23.428734) {
return 31;
}
else {
if ($lat < -16.337534) {
if ($lat < -19.883134) {
return 31;
}
else {
if ($lng < -71.069149) {
return 164;
}
else {
if ($lat < -18.110334) {
if (static::$polygon[268]
->isInside($lat, $lng)) {
return 164;
}
if (static::$polygon[269]
->isInside($lat, $lng)) {
return 190;
}
else {
return 31;
}
}
else {
if (static::$polygon[270]
->isInside($lat, $lng)) {
return 31;
}
if (static::$polygon[271]
->isInside($lat, $lng)) {
return 190;
}
else {
return 164;
}
}
}
}
}
else {
if (static::$polygon[272]
->isInside($lat, $lng)) {
return 190;
}
else {
return 164;
}
}
}
}
else {
if ($lat < -20.059607) {
if ($lat < -22.608159) {
if ($lng < -66.48611099999999) {
if (static::$polygon[273]
->isInside($lat, $lng)) {
return 31;
}
if (static::$polygon[274]
->isInside($lat, $lng)) {
return 159;
}
if (static::$polygon[275]
->isInside($lat, $lng)) {
return 190;
}
else {
return 127;
}
}
else {
if ($lat < -23.882435) {
if (static::$polygon[276]
->isInside($lat, $lng)) {
return 159;
}
if (static::$polygon[277]
->isInside($lat, $lng)) {
return 159;
}
else {
return 127;
}
}
else {
if (static::$polygon[278]
->isInside($lat, $lng)) {
return 159;
}
if (static::$polygon[279]
->isInside($lat, $lng)) {
return 190;
}
else {
return 127;
}
}
}
}
else {
if ($lng < -66.48611099999999) {
if (static::$polygon[280]
->isInside($lat, $lng)) {
return 31;
}
if (static::$polygon[281]
->isInside($lat, $lng)) {
return 159;
}
else {
return 190;
}
}
else {
if (static::$polygon[282]
->isInside($lat, $lng)) {
return 127;
}
if (static::$polygon[283]
->isInside($lat, $lng)) {
return 127;
}
if (static::$polygon[284]
->isInside($lat, $lng)) {
return 159;
}
else {
return 190;
}
}
}
}
else {
if (static::$polygon[285]
->isInside($lat, $lng)) {
return 31;
}
else {
return 190;
}
}
}
}
else {
if ($lat < -19.294041) {
if ($lng < -59.983578) {
if ($lat < -22.225376) {
if ($lng < -62.070822) {
if (static::$polygon[286]
->isInside($lat, $lng)) {
return 127;
}
if (static::$polygon[287]
->isInside($lat, $lng)) {
return 190;
}
if (static::$polygon[288]
->isInside($lat, $lng)) {
return 190;
}
if (static::$polygon[289]
->isInside($lat, $lng)) {
return 278;
}
else {
return 219;
}
}
else {
if (static::$polygon[290]
->isInside($lat, $lng)) {
return 278;
}
else {
return 219;
}
}
}
else {
if (static::$polygon[291]
->isInside($lat, $lng)) {
return 127;
}
if (static::$polygon[292]
->isInside($lat, $lng)) {
return 219;
}
else {
return 190;
}
}
}
else {
if ($lng < -55.612143) {
if ($lat < -22.225376) {
if ($lng < -57.79786) {
if (static::$polygon[293]
->isInside($lat, $lng)) {
return 278;
}
else {
return 219;
}
}
else {
if (static::$polygon[294]
->isInside($lat, $lng)) {
return 278;
}
if (static::$polygon[295]
->isInside($lat, $lng)) {
return 317;
}
if (static::$polygon[296]
->isInside($lat, $lng)) {
return 317;
}
if (static::$polygon[297]
->isInside($lat, $lng)) {
return 317;
}
if (static::$polygon[298]
->isInside($lat, $lng)) {
return 317;
}
if (static::$polygon[299]
->isInside($lat, $lng)) {
return 317;
}
if (static::$polygon[300]
->isInside($lat, $lng)) {
return 317;
}
else {
return 219;
}
}
}
else {
if ($lng < -57.79786) {
if ($lat < -20.759708) {
if (static::$polygon[301]
->isInside($lat, $lng)) {
return 317;
}
else {
return 219;
}
}
else {
if (static::$polygon[302]
->isInside($lat, $lng)) {
return 190;
}
if (static::$polygon[303]
->isInside($lat, $lng)) {
return 219;
}
else {
return 317;
}
}
}
else {
if (static::$polygon[304]
->isInside($lat, $lng)) {
return 219;
}
if (static::$polygon[305]
->isInside($lat, $lng)) {
return 219;
}
if (static::$polygon[306]
->isInside($lat, $lng)) {
return 219;
}
if (static::$polygon[307]
->isInside($lat, $lng)) {
return 219;
}
if (static::$polygon[308]
->isInside($lat, $lng)) {
return 219;
}
if (static::$polygon[309]
->isInside($lat, $lng)) {
return 219;
}
else {
return 317;
}
}
}
}
else {
if ($lat < -22.225376) {
if ($lng < -53.426425) {
if ($lat < -23.691044) {
if (static::$polygon[310]
->isInside($lat, $lng)) {
return 317;
}
if (static::$polygon[311]
->isInside($lat, $lng)) {
return 329;
}
else {
return 219;
}
}
else {
if (static::$polygon[312]
->isInside($lat, $lng)) {
return 219;
}
if (static::$polygon[313]
->isInside($lat, $lng)) {
return 329;
}
else {
return 317;
}
}
}
else {
if (static::$polygon[314]
->isInside($lat, $lng)) {
return 317;
}
else {
return 329;
}
}
}
else {
if (static::$polygon[315]
->isInside($lat, $lng)) {
return 329;
}
else {
return 317;
}
}
}
}
}
else {
if ($lng < -57.699387) {
if ($lng < -60.928726) {
return 190;
}
else {
if ($lat < -17.128271) {
if (static::$polygon[316]
->isInside($lat, $lng)) {
return 317;
}
if (static::$polygon[317]
->isInside($lat, $lng)) {
return 317;
}
if (static::$polygon[318]
->isInside($lat, $lng)) {
return 317;
}
if (static::$polygon[319]
->isInside($lat, $lng)) {
return 363;
}
else {
return 190;
}
}
else {
if (static::$polygon[320]
->isInside($lat, $lng)) {
return 363;
}
else {
return 190;
}
}
}
}
else {
if ($lng < -54.470047) {
if (static::$polygon[321]
->isInside($lat, $lng)) {
return 190;
}
if (static::$polygon[322]
->isInside($lat, $lng)) {
return 190;
}
if (static::$polygon[323]
->isInside($lat, $lng)) {
return 363;
}
else {
return 317;
}
}
else {
if ($lat < -17.128271) {
if ($lng < -52.855377) {
if (static::$polygon[324]
->isInside($lat, $lng)) {
return 329;
}
if (static::$polygon[325]
->isInside($lat, $lng)) {
return 329;
}
if (static::$polygon[326]
->isInside($lat, $lng)) {
return 363;
}
else {
return 317;
}
}
else {
if (static::$polygon[327]
->isInside($lat, $lng)) {
return 329;
}
else {
return 317;
}
}
}
else {
if (static::$polygon[328]
->isInside($lat, $lng)) {
return 329;
}
else {
return 363;
}
}
}
}
}
}
}
else {
if ($lng < -56.305687) {
return static::tryGetTzIndex2($lat, $lng);
}
else {
if ($lng < -51.613949) {
if ($lat < -9.477881999999999) {
if (static::$polygon[329]
->isInside($lat, $lng)) {
return 310;
}
if (static::$polygon[330]
->isInside($lat, $lng)) {
return 363;
}
else {
return 400;
}
}
else {
if ($lat < -1.736668) {
if ($lat < -5.607275) {
if ($lng < -53.959818) {
return 310;
}
else {
if ($lat < -7.542579) {
if (static::$polygon[331]
->isInside($lat, $lng)) {
return 400;
}
else {
return 310;
}
}
else {
if (static::$polygon[332]
->isInside($lat, $lng)) {
return 400;
}
else {
return 310;
}
}
}
}
else {
if (static::$polygon[333]
->isInside($lat, $lng)) {
return 400;
}
else {
return 310;
}
}
}
else {
if ($lat < 2.133939) {
if ($lng < -53.959818) {
if (static::$polygon[334]
->isInside($lat, $lng)) {
return 200;
}
if (static::$polygon[335]
->isInside($lat, $lng)) {
return 362;
}
if (static::$polygon[336]
->isInside($lat, $lng)) {
return 400;
}
else {
return 310;
}
}
else {
if ($lat < 0.198636) {
if (static::$polygon[337]
->isInside($lat, $lng)) {
return 400;
}
else {
return 310;
}
}
else {
if (static::$polygon[338]
->isInside($lat, $lng)) {
return 310;
}
else {
return 400;
}
}
}
}
else {
if ($lng < -53.959818) {
if ($lat < 4.069243) {
if ($lng < -55.132752) {
if (static::$polygon[339]
->isInside($lat, $lng)) {
return 310;
}
else {
return 200;
}
}
else {
if ($lat < 3.101591) {
if ($lng < -54.546285) {
if (static::$polygon[340]
->isInside($lat, $lng)) {
return 310;
}
if (static::$polygon[341]
->isInside($lat, $lng)) {
return 400;
}
else {
return 200;
}
}
else {
if (static::$polygon[342]
->isInside($lat, $lng)) {
return 200;
}
if (static::$polygon[343]
->isInside($lat, $lng)) {
return 400;
}
if (static::$polygon[344]
->isInside($lat, $lng)) {
return 400;
}
else {
return 362;
}
}
}
else {
if (static::$polygon[345]
->isInside($lat, $lng)) {
return 362;
}
else {
return 200;
}
}
}
}
else {
if (static::$polygon[346]
->isInside($lat, $lng)) {
return 362;
}
else {
return 200;
}
}
}
else {
if (static::$polygon[347]
->isInside($lat, $lng)) {
return 400;
}
else {
return 362;
}
}
}
}
}
}
else {
if ($lat < -9.768946) {
if (static::$polygon[348]
->isInside($lat, $lng)) {
return 400;
}
else {
return 363;
}
}
else {
return 400;
}
}
}
}
}