private static function GeoTimezone::tryGetTzIndex5 in Geo Time Zone 7.2
Same name and namespace in other branches
- 8.3 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex5()
- 8 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex5()
- 8.2 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex5()
- 6.2 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex5()
- 6 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex5()
- 7 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex5()
1 call to GeoTimezone::tryGetTzIndex5()
File
- src/
GeoTimezone.php, line 13854 - Contains \Drupal\geotimezone\GeoTimezone.
Class
- GeoTimezone
- Determine the time zone based on coordinates.
Namespace
Drupal\geotimezoneCode
private static function tryGetTzIndex5($lat, $lng) {
if ($lng < -39.243401) {
if ($lat < -1.820639) {
if ($lat < -2.685229) {
if ($lat < -21.599977) {
return 329;
}
else {
if ($lat < -3.148118) {
if ($lat < -7.354445) {
if ($lat < -12.55672) {
if ($lng < -39.656792) {
if ($lng < -44.428988) {
if ($lat < -17.078349) {
return 329;
}
else {
if ($lng < -46.815085) {
if (static::$polygon[444]
->isInside($lat, $lng)) {
return 329;
}
else {
return 61;
}
}
else {
if ($lat < -14.817534) {
if (static::$polygon[445]
->isInside($lat, $lng)) {
return 171;
}
else {
return 329;
}
}
else {
if (static::$polygon[446]
->isInside($lat, $lng)) {
return 61;
}
if (static::$polygon[447]
->isInside($lat, $lng)) {
return 171;
}
else {
return 329;
}
}
}
}
}
else {
if ($lat < -17.078349) {
if (static::$polygon[448]
->isInside($lat, $lng)) {
return 171;
}
else {
return 329;
}
}
else {
if ($lng < -42.04289) {
if (static::$polygon[449]
->isInside($lat, $lng)) {
return 329;
}
else {
return 171;
}
}
else {
if (static::$polygon[450]
->isInside($lat, $lng)) {
return 329;
}
else {
return 171;
}
}
}
}
}
else {
return 171;
}
}
else {
if ($lng < -49.154449) {
if ($lat < -7.791389) {
if (static::$polygon[451]
->isInside($lat, $lng)) {
return 400;
}
else {
return 61;
}
}
else {
if (static::$polygon[452]
->isInside($lat, $lng)) {
return 400;
}
else {
return 61;
}
}
}
else {
if ($lng < -44.198925) {
if ($lat < -9.955582) {
if ($lng < -46.676687) {
return 61;
}
else {
if ($lat < -11.256151) {
if (static::$polygon[453]
->isInside($lat, $lng)) {
return 171;
}
else {
return 61;
}
}
else {
if (static::$polygon[454]
->isInside($lat, $lng)) {
return 61;
}
if (static::$polygon[455]
->isInside($lat, $lng)) {
return 143;
}
else {
return 171;
}
}
}
}
else {
if ($lng < -46.676687) {
if (static::$polygon[456]
->isInside($lat, $lng)) {
return 143;
}
if (static::$polygon[457]
->isInside($lat, $lng)) {
return 143;
}
else {
return 61;
}
}
else {
if (static::$polygon[458]
->isInside($lat, $lng)) {
return 61;
}
if (static::$polygon[459]
->isInside($lat, $lng)) {
return 61;
}
else {
return 143;
}
}
}
}
else {
if ($lat < -9.955582) {
if (static::$polygon[460]
->isInside($lat, $lng)) {
return 143;
}
else {
return 171;
}
}
else {
if ($lng < -41.721163) {
if (static::$polygon[461]
->isInside($lat, $lng)) {
return 171;
}
else {
return 143;
}
}
else {
if ($lat < -8.655013) {
if (static::$polygon[462]
->isInside($lat, $lng)) {
return 143;
}
if (static::$polygon[463]
->isInside($lat, $lng)) {
return 191;
}
else {
return 171;
}
}
else {
if (static::$polygon[464]
->isInside($lat, $lng)) {
return 143;
}
if (static::$polygon[465]
->isInside($lat, $lng)) {
return 143;
}
if (static::$polygon[466]
->isInside($lat, $lng)) {
return 171;
}
else {
return 191;
}
}
}
}
}
}
}
}
else {
if ($lng < -46.716667) {
if ($lat < -3.18) {
if ($lat < -5.267222) {
if ($lng < -47.958925) {
if (static::$polygon[467]
->isInside($lat, $lng)) {
return 143;
}
if (static::$polygon[468]
->isInside($lat, $lng)) {
return 143;
}
if (static::$polygon[469]
->isInside($lat, $lng)) {
return 400;
}
if (static::$polygon[470]
->isInside($lat, $lng)) {
return 400;
}
else {
return 61;
}
}
else {
if (static::$polygon[471]
->isInside($lat, $lng)) {
return 143;
}
else {
return 61;
}
}
}
else {
if (static::$polygon[472]
->isInside($lat, $lng)) {
return 61;
}
if (static::$polygon[473]
->isInside($lat, $lng)) {
return 61;
}
if (static::$polygon[474]
->isInside($lat, $lng)) {
return 400;
}
else {
return 143;
}
}
}
else {
if (static::$polygon[475]
->isInside($lat, $lng)) {
return 143;
}
else {
return 400;
}
}
}
else {
return 143;
}
}
}
else {
if ($lng < -46.568893) {
if ($lng < -46.698047) {
if (static::$polygon[476]
->isInside($lat, $lng)) {
return 143;
}
else {
return 400;
}
}
else {
if (static::$polygon[477]
->isInside($lat, $lng)) {
return 400;
}
else {
return 143;
}
}
}
else {
return 143;
}
}
}
}
else {
if ($lng < -46.206947) {
if ($lng < -49.192532) {
return 400;
}
else {
if (static::$polygon[478]
->isInside($lat, $lng)) {
return 143;
}
else {
return 400;
}
}
}
else {
return 143;
}
}
}
else {
if ($lng < -46.31945) {
return 400;
}
else {
if ($lng < -46.049419) {
if ($lat < -1.159195) {
if ($lat < -1.745833) {
if (static::$polygon[479]
->isInside($lat, $lng)) {
return 400;
}
else {
return 143;
}
}
else {
if (static::$polygon[480]
->isInside($lat, $lng)) {
return 143;
}
else {
return 400;
}
}
}
else {
return 400;
}
}
else {
return 143;
}
}
}
}
else {
if ($lng < -15.836494) {
if ($lng < -23.09849) {
if ($lat < -12.650455) {
return 171;
}
else {
if ($lng < -32.382004) {
if ($lng < -34.790123) {
if ($lat < -8.632455999999999) {
if ($lng < -37.151226) {
if ($lat < -10.641456) {
if (static::$polygon[481]
->isInside($lat, $lng)) {
return 325;
}
else {
return 171;
}
}
else {
if ($lng < -38.197313) {
if (static::$polygon[482]
->isInside($lat, $lng)) {
return 191;
}
if (static::$polygon[483]
->isInside($lat, $lng)) {
return 325;
}
else {
return 171;
}
}
else {
if (static::$polygon[484]
->isInside($lat, $lng)) {
return 171;
}
if (static::$polygon[485]
->isInside($lat, $lng)) {
return 191;
}
else {
return 325;
}
}
}
}
else {
if (static::$polygon[486]
->isInside($lat, $lng)) {
return 191;
}
else {
return 325;
}
}
}
else {
if ($lat < -5.932234) {
if ($lng < -37.016762) {
if ($lat < -7.282345) {
if ($lng < -38.130081) {
if (static::$polygon[487]
->isInside($lat, $lng)) {
return 191;
}
else {
return 143;
}
}
else {
if (static::$polygon[488]
->isInside($lat, $lng)) {
return 191;
}
else {
return 143;
}
}
}
else {
if (static::$polygon[489]
->isInside($lat, $lng)) {
return 191;
}
else {
return 143;
}
}
}
else {
if ($lat < -7.282345) {
if (static::$polygon[490]
->isInside($lat, $lng)) {
return 143;
}
else {
return 191;
}
}
else {
return 143;
}
}
}
else {
return 143;
}
}
}
else {
return 295;
}
}
else {
return 353;
}
}
}
else {
if ($lat < 11.974076) {
return 38;
}
else {
if ($lat < 16.853725) {
if ($lat < 13.69158) {
if ($lat < 13.588785) {
if ($lat < 13.159023) {
if ($lat < 12.46932) {
if ($lng < -16.062716) {
if (static::$polygon[491]
->isInside($lat, $lng)) {
return 225;
}
else {
return 38;
}
}
else {
if (static::$polygon[492]
->isInside($lat, $lng)) {
return 225;
}
else {
return 38;
}
}
}
else {
if (static::$polygon[493]
->isInside($lat, $lng)) {
return 252;
}
else {
return 225;
}
}
}
else {
if ($lat < 13.488581) {
return 252;
}
else {
if (static::$polygon[494]
->isInside($lat, $lng)) {
return 225;
}
else {
return 252;
}
}
}
}
else {
return 225;
}
}
else {
if ($lng < -22.669443) {
return 353;
}
else {
if ($lng < -16.604567) {
return 225;
}
else {
if (static::$polygon[495]
->isInside($lat, $lng)) {
return 33;
}
else {
return 225;
}
}
}
}
}
else {
return 33;
}
}
}
}
else {
if ($lng < -13.435683) {
if ($lat < 11.075797) {
if ($lng < -15.169497) {
return 38;
}
else {
if ($lng < -14.295186) {
if ($lng < -14.897633) {
if ($lng < -14.918398) {
if ($lat < 10.88921) {
return 184;
}
else {
if ($lat < 11.046461) {
if (static::$polygon[496]
->isInside($lat, $lng)) {
return 38;
}
else {
return 184;
}
}
else {
if (static::$polygon[497]
->isInside($lat, $lng)) {
return 184;
}
else {
return 38;
}
}
}
}
else {
return 184;
}
}
else {
if ($lat < -7.887815) {
return 156;
}
else {
return 184;
}
}
}
else {
return 184;
}
}
}
else {
if ($lat < 11.377222) {
if ($lng < -15.225043) {
return 38;
}
else {
if (static::$polygon[498]
->isInside($lat, $lng)) {
return 184;
}
else {
return 38;
}
}
}
else {
if ($lat < 12.680789) {
if ($lng < -15.179247) {
if ($lat < 11.882746) {
return 38;
}
else {
if (static::$polygon[499]
->isInside($lat, $lng)) {
return 225;
}
else {
return 38;
}
}
}
else {
if (static::$polygon[500]
->isInside($lat, $lng)) {
return 184;
}
if (static::$polygon[501]
->isInside($lat, $lng)) {
return 225;
}
else {
return 38;
}
}
}
else {
if ($lat < 13.826571) {
if (static::$polygon[502]
->isInside($lat, $lng)) {
return 225;
}
if (static::$polygon[503]
->isInside($lat, $lng)) {
return 225;
}
else {
return 252;
}
}
else {
if ($lat < 17.100223) {
if ($lat < 15.463397) {
return 225;
}
else {
if ($lng < -14.636089) {
if (static::$polygon[504]
->isInside($lat, $lng)) {
return 225;
}
else {
return 33;
}
}
else {
if (static::$polygon[505]
->isInside($lat, $lng)) {
return 225;
}
else {
return 33;
}
}
}
}
else {
return 33;
}
}
}
}
}
}
else {
if ($lng < -12.454523) {
if ($lat < 8.912874) {
return 68;
}
else {
if ($lat < 9.868772) {
if ($lng < -13.420199) {
return 184;
}
else {
if (static::$polygon[506]
->isInside($lat, $lng)) {
return 68;
}
else {
return 184;
}
}
}
else {
if ($lat < 12.661082) {
if (static::$polygon[507]
->isInside($lat, $lng)) {
return 184;
}
else {
return 225;
}
}
else {
if (static::$polygon[508]
->isInside($lat, $lng)) {
return 33;
}
else {
return 225;
}
}
}
}
}
else {
return static::tryGetTzIndex4($lat, $lng);
}
}
}
}
}