private static function GeoTimezone::tryGetTzIndex11 in Geo Time Zone 6
Same name and namespace in other branches
- 8.3 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex11()
- 8 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex11()
- 8.2 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex11()
- 6.2 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex11()
- 7.2 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex11()
- 7 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex11()
1 call to GeoTimezone::tryGetTzIndex11()
File
- src/
GeoTimezone.php, line 18579 - Contains \Drupal\geotimezone\GeoTimezoneMap.
Class
- GeoTimezone
- Determine the timezone based on coordinates.
Namespace
Drupal\geotimezoneCode
private static function tryGetTzIndex11($lat, $lng) {
if ($lat < 47.560501) {
if ($lat < 39.177528) {
if ($lat < 35.928028) {
if ($lng < -15.360811) {
if ($lat < 28.585676) {
if ($lat < 20.641302) {
return 33;
}
else {
if ($lat < 24.286565) {
if ($lat < 21.330532) {
if (static::$polygon[776]
->isInside($lat, $lng)) {
return 29;
}
else {
return 33;
}
}
else {
return 29;
}
}
else {
return 264;
}
}
}
else {
return 63;
}
}
else {
if ($lng < -13.417682) {
if ($lat < 27.131824) {
if (static::$polygon[777]
->isInside($lat, $lng)) {
return 33;
}
else {
return 29;
}
}
else {
return 264;
}
}
else {
if ($lat < 27.298073) {
if ($lng < 1.713168) {
if (static::$polygon[778]
->isInside($lat, $lng)) {
return 29;
}
if (static::$polygon[779]
->isInside($lat, $lng)) {
return 33;
}
if (static::$polygon[780]
->isInside($lat, $lng)) {
return 380;
}
else {
return 181;
}
}
else {
if (static::$polygon[781]
->isInside($lat, $lng)) {
return 260;
}
else {
return 380;
}
}
}
else {
if ($lng < -5.275472) {
if ($lat < 29.949635) {
if (static::$polygon[782]
->isInside($lat, $lng)) {
return 29;
}
if (static::$polygon[783]
->isInside($lat, $lng)) {
return 380;
}
else {
return 343;
}
}
else {
if (static::$polygon[784]
->isInside($lat, $lng)) {
return 315;
}
else {
return 343;
}
}
}
else {
if ($lat < 35.690445) {
if ($lng < 0.924) {
if ($lat < 31.494259) {
if (static::$polygon[785]
->isInside($lat, $lng)) {
return 343;
}
else {
return 380;
}
}
else {
if ($lng < -2.175736) {
if (static::$polygon[786]
->isInside($lat, $lng)) {
return 315;
}
if (static::$polygon[787]
->isInside($lat, $lng)) {
return 380;
}
if (static::$polygon[788]
->isInside($lat, $lng)) {
return 380;
}
else {
return 343;
}
}
else {
if (static::$polygon[789]
->isInside($lat, $lng)) {
return 343;
}
else {
return 380;
}
}
}
}
else {
return 380;
}
}
else {
return 380;
}
}
}
}
}
}
else {
if ($lng < -7.828166) {
return 57;
}
else {
if ($lng < -0.467861) {
if ($lng < -5.339639) {
if ($lng < -6.933861) {
if (static::$polygon[790]
->isInside($lat, $lng)) {
return 57;
}
else {
return 334;
}
}
else {
if ($lng < -6.877555) {
return 334;
}
else {
if (static::$polygon[791]
->isInside($lat, $lng)) {
return 405;
}
else {
return 334;
}
}
}
}
else {
return 334;
}
}
else {
if ($lat < 37.093723) {
return 380;
}
else {
return 334;
}
}
}
}
}
else {
if ($lat < 43.791721) {
if ($lat < 42.254749) {
if ($lng < -6.182694) {
if ($lat < 42.145638) {
if ($lng < -7.794903) {
if (static::$polygon[792]
->isInside($lat, $lng)) {
return 334;
}
else {
return 57;
}
}
else {
if ($lat < 40.661583) {
if (static::$polygon[793]
->isInside($lat, $lng)) {
return 334;
}
else {
return 57;
}
}
else {
if (static::$polygon[794]
->isInside($lat, $lng)) {
return 57;
}
else {
return 334;
}
}
}
}
else {
return 334;
}
}
else {
return 334;
}
}
else {
if ($lng < 3.315139) {
if ($lng < -8.847362) {
return 334;
}
else {
if ($lng < 1.780389) {
if ($lng < -3.533486) {
return 334;
}
else {
if ($lng < -0.876549) {
if (static::$polygon[795]
->isInside($lat, $lng)) {
return 297;
}
else {
return 334;
}
}
else {
if (static::$polygon[796]
->isInside($lat, $lng)) {
return 136;
}
if (static::$polygon[797]
->isInside($lat, $lng)) {
return 297;
}
if (static::$polygon[798]
->isInside($lat, $lng)) {
return 297;
}
else {
return 334;
}
}
}
}
else {
if (static::$polygon[799]
->isInside($lat, $lng)) {
return 334;
}
if (static::$polygon[800]
->isInside($lat, $lng)) {
return 334;
}
else {
return 297;
}
}
}
}
else {
return 297;
}
}
}
else {
if ($lng < -0.5978329999999999) {
return 297;
}
else {
if ($lat < 45.349019) {
if ($lat < 45.262008) {
if (static::$polygon[801]
->isInside($lat, $lng)) {
return 271;
}
else {
return 297;
}
}
else {
if (static::$polygon[802]
->isInside($lat, $lng)) {
return 271;
}
else {
return 297;
}
}
}
else {
if ($lng < 3.262819) {
return 297;
}
else {
if ($lng < 5.193146) {
return 297;
}
else {
if ($lat < 46.45476) {
if (static::$polygon[803]
->isInside($lat, $lng)) {
return 172;
}
if (static::$polygon[804]
->isInside($lat, $lng)) {
return 172;
}
if (static::$polygon[805]
->isInside($lat, $lng)) {
return 172;
}
if (static::$polygon[806]
->isInside($lat, $lng)) {
return 271;
}
else {
return 297;
}
}
else {
if (static::$polygon[807]
->isInside($lat, $lng)) {
return 297;
}
if (static::$polygon[808]
->isInside($lat, $lng)) {
return 297;
}
else {
return 172;
}
}
}
}
}
}
}
}
}
else {
if ($lng < -3.590778) {
if ($lng < -6.628972) {
return 285;
}
else {
if ($lat < 48.755917) {
return 297;
}
else {
if ($lat < 51.883221) {
return 303;
}
else {
if ($lng < -6.040233) {
return 285;
}
else {
return 303;
}
}
}
}
}
else {
if ($lng < 0.689972) {
if ($lat < 49.871569) {
if ($lng < -2.702667) {
return 297;
}
else {
if ($lng < -2.450417) {
if ($lat < 48.654946) {
return 297;
}
else {
return 296;
}
}
else {
if ($lng < -2.351278) {
if ($lat < 49.04478) {
return 296;
}
else {
return 297;
}
}
else {
if ($lat < 49.265057) {
if (static::$polygon[809]
->isInside($lat, $lng)) {
return 139;
}
else {
return 297;
}
}
else {
if ($lng < -2.055792) {
return 296;
}
else {
return 297;
}
}
}
}
}
}
else {
return 303;
}
}
else {
if ($lng < 1.759) {
if ($lat < 50.95008) {
if (static::$polygon[810]
->isInside($lat, $lng)) {
return 303;
}
if (static::$polygon[811]
->isInside($lat, $lng)) {
return 303;
}
else {
return 297;
}
}
else {
return 303;
}
}
else {
if ($lat < 51.770695) {
if ($lat < 51.505444) {
if ($lng < 4.441236) {
if ($lat < 49.532972) {
return 297;
}
else {
if ($lng < 3.100118) {
if (static::$polygon[812]
->isInside($lat, $lng)) {
return 254;
}
else {
return 297;
}
}
else {
if ($lat < 50.519208) {
if (static::$polygon[813]
->isInside($lat, $lng)) {
return 254;
}
if (static::$polygon[814]
->isInside($lat, $lng)) {
return 254;
}
else {
return 297;
}
}
else {
if (static::$polygon[815]
->isInside($lat, $lng)) {
return 254;
}
if (static::$polygon[816]
->isInside($lat, $lng)) {
return 297;
}
if (static::$polygon[817]
->isInside($lat, $lng)) {
return 297;
}
else {
return 385;
}
}
}
}
}
else {
if ($lat < 49.532972) {
if (static::$polygon[818]
->isInside($lat, $lng)) {
return 6;
}
if (static::$polygon[819]
->isInside($lat, $lng)) {
return 211;
}
if (static::$polygon[820]
->isInside($lat, $lng)) {
return 254;
}
else {
return 297;
}
}
else {
if ($lng < 5.782354) {
if ($lat < 50.519208) {
if (static::$polygon[821]
->isInside($lat, $lng)) {
return 211;
}
if (static::$polygon[822]
->isInside($lat, $lng)) {
return 211;
}
if (static::$polygon[823]
->isInside($lat, $lng)) {
return 297;
}
if (static::$polygon[824]
->isInside($lat, $lng)) {
return 297;
}
else {
return 254;
}
}
else {
if (static::$polygon[825]
->isInside($lat, $lng)) {
return 254;
}
else {
return 385;
}
}
}
else {
if ($lat < 50.519208) {
if ($lng < 6.452913) {
if ($lat < 50.02609) {
if (static::$polygon[826]
->isInside($lat, $lng)) {
return 6;
}
if (static::$polygon[827]
->isInside($lat, $lng)) {
return 6;
}
if (static::$polygon[828]
->isInside($lat, $lng)) {
return 254;
}
if (static::$polygon[829]
->isInside($lat, $lng)) {
return 254;
}
if (static::$polygon[830]
->isInside($lat, $lng)) {
return 254;
}
if (static::$polygon[831]
->isInside($lat, $lng)) {
return 297;
}
else {
return 211;
}
}
else {
if (static::$polygon[832]
->isInside($lat, $lng)) {
return 6;
}
if (static::$polygon[833]
->isInside($lat, $lng)) {
return 211;
}
else {
return 254;
}
}
}
else {
if (static::$polygon[834]
->isInside($lat, $lng)) {
return 211;
}
else {
return 6;
}
}
}
else {
if (static::$polygon[835]
->isInside($lat, $lng)) {
return 254;
}
if (static::$polygon[836]
->isInside($lat, $lng)) {
return 254;
}
if (static::$polygon[837]
->isInside($lat, $lng)) {
return 385;
}
else {
return 6;
}
}
}
}
}
}
else {
if ($lng < 4.356167) {
return 385;
}
else {
if (static::$polygon[838]
->isInside($lat, $lng)) {
return 6;
}
else {
return 385;
}
}
}
}
else {
if ($lng < 5.862928) {
return 385;
}
else {
if (static::$polygon[839]
->isInside($lat, $lng)) {
return 6;
}
else {
return 385;
}
}
}
}
}
}
}
}