private static function GeoTimezone::tryGetTzIndex47 in Geo Time Zone 7.2
Same name and namespace in other branches
- 8.3 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex47()
- 8 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex47()
- 8.2 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex47()
- 6.2 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex47()
- 6 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex47()
- 7 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex47()
1 call to GeoTimezone::tryGetTzIndex47()
File
- src/
GeoTimezone.php, line 37920 - Contains \Drupal\geotimezone\GeoTimezone.
Class
- GeoTimezone
- Determine the time zone based on coordinates.
Namespace
Drupal\geotimezoneCode
private static function tryGetTzIndex47($lat, $lng) {
if ($lat < 50.924026) {
if ($lat < 35.537945) {
if ($lng < 128.948471) {
return 11;
}
else {
if ($lng < 129.4563) {
if ($lat < 34.702641) {
return 280;
}
else {
return 11;
}
}
else {
return 280;
}
}
}
else {
if ($lng < 140.967285) {
if ($lat < 39.235085) {
if ($lng < 130.923218) {
if ($lng < 128.363785) {
if ($lat < 38.612446) {
if (static::$polygon[2572]
->isInside($lat, $lng)) {
return 151;
}
else {
return 11;
}
}
else {
return 151;
}
}
else {
return 11;
}
}
else {
return 280;
}
}
else {
if ($lng < 131.517105) {
if ($lat < 40.005638) {
return 151;
}
else {
if ($lat < 45.016474) {
if ($lng < 130.936279) {
if ($lng < 130.674866) {
if ($lat < 42.511056) {
if ($lng < 129.042545) {
if (static::$polygon[2573]
->isInside($lat, $lng)) {
return 42;
}
else {
return 151;
}
}
else {
if (static::$polygon[2574]
->isInside($lat, $lng)) {
return 37;
}
if (static::$polygon[2575]
->isInside($lat, $lng)) {
return 42;
}
if (static::$polygon[2576]
->isInside($lat, $lng)) {
return 42;
}
else {
return 151;
}
}
}
else {
if (static::$polygon[2577]
->isInside($lat, $lng)) {
return 37;
}
if (static::$polygon[2578]
->isInside($lat, $lng)) {
return 151;
}
else {
return 42;
}
}
}
else {
if ($lat < 42.642555) {
return 37;
}
else {
if (static::$polygon[2579]
->isInside($lat, $lng)) {
return 42;
}
else {
return 37;
}
}
}
}
else {
if ($lat < 42.833363) {
return 37;
}
else {
if (static::$polygon[2580]
->isInside($lat, $lng)) {
return 42;
}
else {
return 37;
}
}
}
}
else {
if ($lat < 47.97025) {
if (static::$polygon[2581]
->isInside($lat, $lng)) {
return 37;
}
else {
return 42;
}
}
else {
if ($lng < 129.463665) {
if (static::$polygon[2582]
->isInside($lat, $lng)) {
return 42;
}
else {
return 141;
}
}
else {
if ($lat < 49.447138) {
if ($lng < 130.490385) {
if (static::$polygon[2583]
->isInside($lat, $lng)) {
return 141;
}
else {
return 42;
}
}
else {
if (static::$polygon[2584]
->isInside($lat, $lng)) {
return 42;
}
if (static::$polygon[2585]
->isInside($lat, $lng)) {
return 141;
}
else {
return 37;
}
}
}
else {
if (static::$polygon[2586]
->isInside($lat, $lng)) {
return 141;
}
else {
return 37;
}
}
}
}
}
}
}
else {
if ($lat < 42.342888) {
return 280;
}
else {
if ($lng < 131.939438) {
if ($lat < 43.206934) {
return 37;
}
else {
if ($lat < 45.336029) {
if ($lng < 131.891479) {
if (static::$polygon[2587]
->isInside($lat, $lng)) {
return 42;
}
else {
return 37;
}
}
else {
if (static::$polygon[2588]
->isInside($lat, $lng)) {
return 42;
}
else {
return 37;
}
}
}
else {
if (static::$polygon[2589]
->isInside($lat, $lng)) {
return 42;
}
else {
return 37;
}
}
}
}
else {
if ($lng < 134.773911) {
if ($lat < 42.900028) {
return 37;
}
else {
if ($lat < 46.912027) {
if (static::$polygon[2590]
->isInside($lat, $lng)) {
return 42;
}
else {
return 37;
}
}
else {
if ($lat < 48.918027) {
if ($lng < 133.356674) {
if (static::$polygon[2591]
->isInside($lat, $lng)) {
return 42;
}
else {
return 37;
}
}
else {
if (static::$polygon[2592]
->isInside($lat, $lng)) {
return 42;
}
else {
return 37;
}
}
}
else {
return 37;
}
}
}
}
else {
if (static::$polygon[2593]
->isInside($lat, $lng)) {
return 280;
}
else {
return 37;
}
}
}
}
}
}
}
else {
if ($lng < 146.209671) {
if ($lat < 43.290001) {
return 280;
}
else {
if ($lng < 145.393784) {
if ($lat < 45.52314) {
return 280;
}
else {
return 36;
}
}
else {
if ($lng < 145.820892) {
if ($lat < 43.521431) {
return 140;
}
else {
return 280;
}
}
else {
return 140;
}
}
}
}
else {
if ($lng < 156.5103) {
return 140;
}
else {
return 373;
}
}
}
}
}
else {
if ($lng < 148.475754) {
if ($lng < 129.612976) {
return 141;
}
else {
if ($lat < 71.35683400000001) {
return static::tryGetTzIndex46($lat, $lng);
}
else {
if ($lat < 72.331413) {
if ($lng < 137.560638) {
if ($lng < 130.047699) {
return 141;
}
else {
return 37;
}
}
else {
if ($lng < 138.896896) {
return 37;
}
else {
if (static::$polygon[2594]
->isInside($lat, $lng)) {
return 46;
}
else {
return 37;
}
}
}
}
else {
return 37;
}
}
}
}
else {
if ($lng < 161.149689) {
if ($lng < 152.057312) {
if ($lat < 72.314082) {
return 46;
}
else {
return 37;
}
}
else {
if ($lat < 69.46707499999999) {
if ($lat < 68.347848) {
if ($lng < 155.534637) {
return 46;
}
else {
if ($lat < 59.780066) {
if ($lng < 155.597702) {
if ($lat < 57.468508) {
return 46;
}
else {
return 373;
}
}
else {
return 373;
}
}
else {
if ($lat < 60.907417) {
return 46;
}
else {
if ($lat < 64.62763200000001) {
return 46;
}
else {
if ($lng < 158.342163) {
if (static::$polygon[2595]
->isInside($lat, $lng)) {
return 365;
}
else {
return 46;
}
}
else {
if (static::$polygon[2596]
->isInside($lat, $lng)) {
return 365;
}
else {
return 46;
}
}
}
}
}
}
}
else {
return 46;
}
}
else {
if ($lat < 71.090889) {
return 46;
}
else {
return 37;
}
}
}
}
else {
if ($lat < 65.153413) {
if ($lat < 53.00589) {
return 158;
}
else {
if ($lat < 60.870335) {
return 373;
}
else {
if ($lng < 163.466064) {
if ($lat < 64.386932) {
if ($lat < 61.465637) {
if ($lng < 162.566748) {
return 46;
}
else {
return 373;
}
}
else {
if ($lat < 62.926285) {
if (static::$polygon[2597]
->isInside($lat, $lng)) {
return 46;
}
else {
return 373;
}
}
else {
if (static::$polygon[2598]
->isInside($lat, $lng)) {
return 46;
}
else {
return 373;
}
}
}
}
else {
if (static::$polygon[2599]
->isInside($lat, $lng)) {
return 365;
}
if (static::$polygon[2600]
->isInside($lat, $lng)) {
return 373;
}
else {
return 46;
}
}
}
else {
if ($lng < 174.513611) {
if ($lat < 61.112862) {
return 373;
}
else {
if ($lng < 168.989838) {
if ($lng < 166.227951) {
if (static::$polygon[2601]
->isInside($lat, $lng)) {
return 365;
}
else {
return 373;
}
}
else {
if (static::$polygon[2602]
->isInside($lat, $lng)) {
return 373;
}
else {
return 365;
}
}
}
else {
if ($lng < 171.751724) {
if ($lat < 63.133138) {
if (static::$polygon[2603]
->isInside($lat, $lng)) {
return 373;
}
else {
return 365;
}
}
else {
if (static::$polygon[2604]
->isInside($lat, $lng)) {
return 373;
}
else {
return 365;
}
}
}
else {
if (static::$polygon[2605]
->isInside($lat, $lng)) {
return 365;
}
else {
return 373;
}
}
}
}
}
else {
return 365;
}
}
}
}
}
else {
if ($lng < 162.849396) {
if ($lat < 69.663055) {
if ($lng < 161.65567) {
if ($lat < 68.411377) {
if ($lng < 161.365784) {
if (static::$polygon[2606]
->isInside($lat, $lng)) {
return 46;
}
else {
return 365;
}
}
else {
if (static::$polygon[2607]
->isInside($lat, $lng)) {
return 46;
}
else {
return 365;
}
}
}
else {
return 46;
}
}
else {
if ($lng < 161.891998) {
if ($lat < 68.378539) {
if (static::$polygon[2608]
->isInside($lat, $lng)) {
return 46;
}
else {
return 365;
}
}
else {
return 46;
}
}
else {
if ($lat < 68.869705) {
if (static::$polygon[2609]
->isInside($lat, $lng)) {
return 46;
}
else {
return 365;
}
}
else {
if ($lng < 162.089188) {
return 46;
}
else {
if (static::$polygon[2610]
->isInside($lat, $lng)) {
return 365;
}
else {
return 46;
}
}
}
}
}
}
else {
return 46;
}
}
else {
return 365;
}
}
}
}
}
}