private static function GeoTimezone::tryGetTzIndex0 in Geo Time Zone 8.2
Same name and namespace in other branches
- 8.3 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex0()
- 8 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex0()
- 6.2 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex0()
- 6 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex0()
- 7.2 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex0()
- 7 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex0()
1 call to GeoTimezone::tryGetTzIndex0()
File
- src/
GeoTimezone.php, line 10499 - Contains \Drupal\geotimezone\GeoTimezone.
Class
- GeoTimezone
- Determine the time zone based on coordinates.
Namespace
Drupal\geotimezoneCode
private static function tryGetTzIndex0($lat, $lng) {
if ($lng < -58.655621) {
if ($lng < -62.365894) {
if ($lng < -70.680565) {
if ($lat < -36.247081) {
if ($lng < -72.442055) {
return 31;
}
else {
if ($lat < -36.383263) {
if ($lat < -39.927078) {
if ($lat < -41.698986) {
if (static::$polygon[37]
->isInside($lat, $lng)) {
return 88;
}
if (static::$polygon[38]
->isInside($lat, $lng)) {
return 127;
}
else {
return 31;
}
}
else {
if (static::$polygon[39]
->isInside($lat, $lng)) {
return 127;
}
else {
return 31;
}
}
}
else {
if ($lat < -38.15517) {
if (static::$polygon[40]
->isInside($lat, $lng)) {
return 31;
}
else {
return 127;
}
}
else {
if (static::$polygon[41]
->isInside($lat, $lng)) {
return 127;
}
else {
return 31;
}
}
}
}
else {
if (static::$polygon[42]
->isInside($lat, $lng)) {
return 127;
}
else {
return 31;
}
}
}
}
else {
return 31;
}
}
else {
if ($lat < -40.237473) {
if ($lng < -62.790363) {
if ($lat < -42.344032) {
return 88;
}
else {
if ($lat < -42.072571) {
return 88;
}
else {
if ($lng < -65.033895) {
if (static::$polygon[43]
->isInside($lat, $lng)) {
return 88;
}
else {
return 127;
}
}
else {
if ($lng < -65.00413500000001) {
return 127;
}
else {
if (static::$polygon[44]
->isInside($lat, $lng)) {
return 226;
}
else {
return 127;
}
}
}
}
}
}
else {
return 226;
}
}
else {
if ($lat < -31.954723) {
if ($lng < -69.174179) {
if ($lat < -36.096098) {
if (static::$polygon[45]
->isInside($lat, $lng)) {
return 14;
}
if (static::$polygon[46]
->isInside($lat, $lng)) {
return 31;
}
if (static::$polygon[47]
->isInside($lat, $lng)) {
return 31;
}
else {
return 127;
}
}
else {
if ($lat < -34.025411) {
if (static::$polygon[48]
->isInside($lat, $lng)) {
return 31;
}
else {
return 14;
}
}
else {
if ($lat < -32.990067) {
if (static::$polygon[49]
->isInside($lat, $lng)) {
return 31;
}
else {
return 14;
}
}
else {
if (static::$polygon[50]
->isInside($lat, $lng)) {
return 31;
}
if (static::$polygon[51]
->isInside($lat, $lng)) {
return 346;
}
else {
return 14;
}
}
}
}
}
else {
if ($lng < -66.501678) {
if ($lat < -36.096098) {
if (static::$polygon[52]
->isInside($lat, $lng)) {
return 14;
}
else {
return 127;
}
}
else {
if ($lat < -34.025411) {
if (static::$polygon[53]
->isInside($lat, $lng)) {
return 127;
}
if (static::$polygon[54]
->isInside($lat, $lng)) {
return 314;
}
else {
return 14;
}
}
else {
if (static::$polygon[55]
->isInside($lat, $lng)) {
return 314;
}
if (static::$polygon[56]
->isInside($lat, $lng)) {
return 346;
}
else {
return 14;
}
}
}
}
else {
if (static::$polygon[57]
->isInside($lat, $lng)) {
return 127;
}
if (static::$polygon[58]
->isInside($lat, $lng)) {
return 226;
}
if (static::$polygon[59]
->isInside($lat, $lng)) {
return 314;
}
else {
return 278;
}
}
}
}
else {
if ($lng < -66.52323) {
if ($lat < -28.555717) {
if ($lng < -68.60189699999999) {
if ($lat < -30.25522) {
if (static::$polygon[60]
->isInside($lat, $lng)) {
return 346;
}
else {
return 31;
}
}
else {
if (static::$polygon[61]
->isInside($lat, $lng)) {
return 31;
}
if (static::$polygon[62]
->isInside($lat, $lng)) {
return 249;
}
else {
return 346;
}
}
}
else {
if (static::$polygon[63]
->isInside($lat, $lng)) {
return 249;
}
if (static::$polygon[64]
->isInside($lat, $lng)) {
return 314;
}
else {
return 346;
}
}
}
else {
if ($lng < -68.60189699999999) {
if (static::$polygon[65]
->isInside($lat, $lng)) {
return 88;
}
if (static::$polygon[66]
->isInside($lat, $lng)) {
return 249;
}
if (static::$polygon[67]
->isInside($lat, $lng)) {
return 346;
}
else {
return 31;
}
}
else {
if ($lat < -26.856215) {
if (static::$polygon[68]
->isInside($lat, $lng)) {
return 31;
}
if (static::$polygon[69]
->isInside($lat, $lng)) {
return 249;
}
else {
return 88;
}
}
else {
if (static::$polygon[70]
->isInside($lat, $lng)) {
return 31;
}
if (static::$polygon[71]
->isInside($lat, $lng)) {
return 127;
}
if (static::$polygon[72]
->isInside($lat, $lng)) {
return 127;
}
else {
return 88;
}
}
}
}
}
else {
if ($lat < -28.555717) {
if (static::$polygon[73]
->isInside($lat, $lng)) {
return 249;
}
if (static::$polygon[74]
->isInside($lat, $lng)) {
return 278;
}
if (static::$polygon[75]
->isInside($lat, $lng)) {
return 314;
}
else {
return 88;
}
}
else {
if ($lng < -64.444562) {
if ($lat < -26.856215) {
if ($lng < -65.483896) {
if (static::$polygon[76]
->isInside($lat, $lng)) {
return 129;
}
if (static::$polygon[77]
->isInside($lat, $lng)) {
return 249;
}
else {
return 88;
}
}
else {
if (static::$polygon[78]
->isInside($lat, $lng)) {
return 88;
}
if (static::$polygon[79]
->isInside($lat, $lng)) {
return 129;
}
else {
return 278;
}
}
}
else {
if (static::$polygon[80]
->isInside($lat, $lng)) {
return 88;
}
if (static::$polygon[81]
->isInside($lat, $lng)) {
return 88;
}
if (static::$polygon[82]
->isInside($lat, $lng)) {
return 127;
}
if (static::$polygon[83]
->isInside($lat, $lng)) {
return 278;
}
else {
return 129;
}
}
}
else {
if (static::$polygon[84]
->isInside($lat, $lng)) {
return 127;
}
else {
return 278;
}
}
}
}
}
}
}
}
else {
if ($lat < -38.766533) {
return 226;
}
else {
if (static::$polygon[85]
->isInside($lat, $lng)) {
return 278;
}
else {
return 226;
}
}
}
}
else {
if ($lng < -53.073933) {
if ($lat < -33.963406) {
if ($lng < -58.364113) {
if ($lat < -34.247784) {
return 226;
}
else {
if ($lng < -58.432247) {
if (static::$polygon[86]
->isInside($lat, $lng)) {
return 278;
}
else {
return 226;
}
}
else {
if ($lat < -34.015757) {
return 226;
}
else {
return 245;
}
}
}
}
else {
if ($lng < -56.669033) {
if ($lat < -34.604405) {
if (static::$polygon[87]
->isInside($lat, $lng)) {
return 245;
}
else {
return 226;
}
}
else {
if ($lng < -58.238857) {
if ($lat < -34.121304) {
return 226;
}
else {
return 245;
}
}
else {
return 245;
}
}
}
else {
return 245;
}
}
}
else {
if ($lat < -32.746323) {
if ($lng < -58.113934) {
if ($lng < -58.179478) {
if ($lat < -33.112217) {
if (static::$polygon[88]
->isInside($lat, $lng)) {
return 278;
}
else {
return 245;
}
}
else {
if ($lng < -58.244583) {
return 278;
}
else {
if (static::$polygon[89]
->isInside($lat, $lng)) {
return 245;
}
else {
return 278;
}
}
}
}
else {
if ($lat < -33.078617) {
return 245;
}
else {
if ($lng < -58.151073) {
if (static::$polygon[90]
->isInside($lat, $lng)) {
return 245;
}
else {
return 278;
}
}
else {
if ($lat < -33.051277) {
return 245;
}
else {
if (static::$polygon[91]
->isInside($lat, $lng)) {
return 278;
}
else {
return 245;
}
}
}
}
}
}
else {
if ($lng < -58.08305) {
return 245;
}
else {
if (static::$polygon[92]
->isInside($lat, $lng)) {
return 329;
}
else {
return 245;
}
}
}
}
else {
if ($lat < -28.951517) {
if ($lng < -55.864777) {
if ($lat < -30.84892) {
if (static::$polygon[93]
->isInside($lat, $lng)) {
return 278;
}
if (static::$polygon[94]
->isInside($lat, $lng)) {
return 329;
}
else {
return 245;
}
}
else {
if ($lng < -57.260199) {
if (static::$polygon[95]
->isInside($lat, $lng)) {
return 278;
}
if (static::$polygon[96]
->isInside($lat, $lng)) {
return 329;
}
else {
return 245;
}
}
else {
if ($lat < -29.900218) {
if (static::$polygon[97]
->isInside($lat, $lng)) {
return 329;
}
else {
return 245;
}
}
else {
if (static::$polygon[98]
->isInside($lat, $lng)) {
return 278;
}
else {
return 329;
}
}
}
}
}
else {
if (static::$polygon[99]
->isInside($lat, $lng)) {
return 329;
}
else {
return 245;
}
}
}
else {
if ($lng < -55.864777) {
if ($lat < -27.054114) {
if (static::$polygon[100]
->isInside($lat, $lng)) {
return 219;
}
if (static::$polygon[101]
->isInside($lat, $lng)) {
return 329;
}
else {
return 278;
}
}
else {
if ($lng < -57.260199) {
if ($lat < -26.105413) {
if (static::$polygon[102]
->isInside($lat, $lng)) {
return 278;
}
else {
return 219;
}
}
else {
if (static::$polygon[103]
->isInside($lat, $lng)) {
return 278;
}
else {
return 219;
}
}
}
else {
return 219;
}
}
}
else {
if ($lat < -27.054114) {
if ($lng < -54.469355) {
if ($lat < -28.002816) {
if (static::$polygon[104]
->isInside($lat, $lng)) {
return 278;
}
else {
return 329;
}
}
else {
if (static::$polygon[105]
->isInside($lat, $lng)) {
return 219;
}
if (static::$polygon[106]
->isInside($lat, $lng)) {
return 329;
}
if (static::$polygon[107]
->isInside($lat, $lng)) {
return 329;
}
else {
return 278;
}
}
}
else {
if (static::$polygon[108]
->isInside($lat, $lng)) {
return 278;
}
if (static::$polygon[109]
->isInside($lat, $lng)) {
return 278;
}
if (static::$polygon[110]
->isInside($lat, $lng)) {
return 278;
}
else {
return 329;
}
}
}
else {
if ($lng < -54.469355) {
if (static::$polygon[111]
->isInside($lat, $lng)) {
return 278;
}
if (static::$polygon[112]
->isInside($lat, $lng)) {
return 329;
}
else {
return 219;
}
}
else {
if ($lat < -26.105413) {
if (static::$polygon[113]
->isInside($lat, $lng)) {
return 329;
}
if (static::$polygon[114]
->isInside($lat, $lng)) {
return 329;
}
else {
return 278;
}
}
else {
if (static::$polygon[115]
->isInside($lat, $lng)) {
return 219;
}
if (static::$polygon[116]
->isInside($lat, $lng)) {
return 278;
}
else {
return 329;
}
}
}
}
}
}
}
}
}
else {
if ($lng < -47.913853) {
return 329;
}
else {
return 156;
}
}
}
}