private static function GeoTimezone::tryGetTzIndex45 in Geo Time Zone 8.2
Same name and namespace in other branches
- 8.3 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex45()
- 8 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex45()
- 6.2 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex45()
- 6 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex45()
- 7.2 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex45()
- 7 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex45()
1 call to GeoTimezone::tryGetTzIndex45()
File
- src/
GeoTimezone.php, line 36928 - Contains \Drupal\geotimezone\GeoTimezone.
Class
- GeoTimezone
- Determine the time zone based on coordinates.
Namespace
Drupal\geotimezoneCode
private static function tryGetTzIndex45($lat, $lng) {
if ($lat < 60.298607) {
if ($lat < 38.331139) {
if ($lng < 126.114944) {
if ($lng < 122.704277) {
if ($lng < 110.802727) {
if ($lat < 37.663533) {
if (static::$polygon[2463]
->isInside($lat, $lng)) {
return 291;
}
else {
return 403;
}
}
else {
if (static::$polygon[2464]
->isInside($lat, $lng)) {
return 291;
}
else {
return 403;
}
}
}
else {
return 291;
}
}
else {
if ($lat < 37.284248) {
return 11;
}
else {
if ($lng < 125.197052) {
if ($lng < 124.768219) {
if ($lat < 37.982666) {
return 11;
}
else {
return 151;
}
}
else {
return 151;
}
}
else {
if ($lat < 37.678055) {
if ($lng < 125.510507) {
return 11;
}
else {
return 151;
}
}
else {
return 151;
}
}
}
}
}
else {
if ($lat < 37.681999) {
return 11;
}
else {
if ($lng < 126.666692) {
if ($lng < 126.167) {
return 151;
}
else {
if ($lat < 37.749195) {
return 11;
}
else {
if ($lng < 126.336586) {
if ($lat < 37.823339) {
return 11;
}
else {
return 151;
}
}
else {
if ($lng < 126.516444) {
if (static::$polygon[2465]
->isInside($lat, $lng)) {
return 11;
}
else {
return 151;
}
}
else {
if (static::$polygon[2466]
->isInside($lat, $lng)) {
return 11;
}
else {
return 151;
}
}
}
}
}
}
else {
if ($lng < 127.382829) {
if (static::$polygon[2467]
->isInside($lat, $lng)) {
return 151;
}
else {
return 11;
}
}
else {
if (static::$polygon[2468]
->isInside($lat, $lng)) {
return 151;
}
else {
return 11;
}
}
}
}
}
}
else {
if ($lat < 39.382084) {
if ($lng < 121.710999) {
if ($lng < 111.212129) {
if ($lat < 39.289394) {
if (static::$polygon[2469]
->isInside($lat, $lng)) {
return 291;
}
else {
return 403;
}
}
else {
if (static::$polygon[2470]
->isInside($lat, $lng)) {
return 291;
}
else {
return 403;
}
}
}
else {
return 291;
}
}
else {
if ($lng < 123.197807) {
return 291;
}
else {
return 151;
}
}
}
else {
if ($lng < 123.75647) {
return static::tryGetTzIndex44($lat, $lng);
}
else {
if ($lat < 39.723915) {
return 151;
}
else {
if ($lat < 39.931973) {
if ($lng < 124.255466) {
if (static::$polygon[2471]
->isInside($lat, $lng)) {
return 151;
}
else {
return 291;
}
}
else {
return 151;
}
}
else {
if ($lat < 43.487705) {
if ($lng < 123.811134) {
if (static::$polygon[2472]
->isInside($lat, $lng)) {
return 42;
}
else {
return 291;
}
}
else {
if ($lng < 125.61068) {
if ($lat < 41.709839) {
if (static::$polygon[2473]
->isInside($lat, $lng)) {
return 42;
}
if (static::$polygon[2474]
->isInside($lat, $lng)) {
return 42;
}
if (static::$polygon[2475]
->isInside($lat, $lng)) {
return 291;
}
else {
return 151;
}
}
else {
if (static::$polygon[2476]
->isInside($lat, $lng)) {
return 291;
}
else {
return 42;
}
}
}
else {
if ($lat < 41.709839) {
if ($lng < 126.510452) {
if (static::$polygon[2477]
->isInside($lat, $lng)) {
return 151;
}
if (static::$polygon[2478]
->isInside($lat, $lng)) {
return 151;
}
if (static::$polygon[2479]
->isInside($lat, $lng)) {
return 291;
}
if (static::$polygon[2480]
->isInside($lat, $lng)) {
return 291;
}
else {
return 42;
}
}
else {
if (static::$polygon[2481]
->isInside($lat, $lng)) {
return 151;
}
else {
return 42;
}
}
}
else {
if (static::$polygon[2482]
->isInside($lat, $lng)) {
return 151;
}
if (static::$polygon[2483]
->isInside($lat, $lng)) {
return 151;
}
else {
return 42;
}
}
}
}
}
else {
if ($lat < 51.893156) {
if ($lat < 47.69043) {
return 42;
}
else {
if ($lat < 49.791793) {
if (static::$polygon[2484]
->isInside($lat, $lng)) {
return 291;
}
else {
return 42;
}
}
else {
if ($lng < 125.583347) {
if (static::$polygon[2485]
->isInside($lat, $lng)) {
return 291;
}
else {
return 42;
}
}
else {
if (static::$polygon[2486]
->isInside($lat, $lng)) {
return 141;
}
if (static::$polygon[2487]
->isInside($lat, $lng)) {
return 291;
}
else {
return 42;
}
}
}
}
}
else {
if ($lat < 56.095881) {
if ($lat < 53.994519) {
if ($lng < 125.583347) {
if (static::$polygon[2488]
->isInside($lat, $lng)) {
return 141;
}
if (static::$polygon[2489]
->isInside($lat, $lng)) {
return 291;
}
else {
return 42;
}
}
else {
if (static::$polygon[2490]
->isInside($lat, $lng)) {
return 42;
}
else {
return 141;
}
}
}
else {
return 141;
}
}
else {
return 141;
}
}
}
}
}
}
}
}
}
else {
if ($lng < 118.797836) {
if ($lat < 75.927002) {
if ($lat < 73.20966300000001) {
if ($lat < 72.847191) {
if ($lng < 112.7258) {
if ($lat < 66.57289900000001) {
if ($lng < 108.915218) {
if ($lat < 63.435753) {
if (static::$polygon[2491]
->isInside($lat, $lng)) {
return 289;
}
else {
return 144;
}
}
else {
if ($lng < 107.009928) {
if ($lat < 65.00432600000001) {
if (static::$polygon[2492]
->isInside($lat, $lng)) {
return 141;
}
if (static::$polygon[2493]
->isInside($lat, $lng)) {
return 144;
}
else {
return 289;
}
}
else {
if (static::$polygon[2494]
->isInside($lat, $lng)) {
return 289;
}
else {
return 141;
}
}
}
else {
if ($lat < 65.00432600000001) {
if ($lng < 107.962573) {
if (static::$polygon[2495]
->isInside($lat, $lng)) {
return 141;
}
if (static::$polygon[2496]
->isInside($lat, $lng)) {
return 144;
}
else {
return 289;
}
}
else {
if (static::$polygon[2497]
->isInside($lat, $lng)) {
return 141;
}
if (static::$polygon[2498]
->isInside($lat, $lng)) {
return 289;
}
else {
return 144;
}
}
}
else {
return 141;
}
}
}
}
else {
if ($lat < 63.435753) {
if ($lng < 110.820509) {
if ($lat < 61.86718) {
if (static::$polygon[2499]
->isInside($lat, $lng)) {
return 144;
}
else {
return 141;
}
}
else {
if (static::$polygon[2500]
->isInside($lat, $lng)) {
return 144;
}
else {
return 141;
}
}
}
else {
return 141;
}
}
else {
if (static::$polygon[2501]
->isInside($lat, $lng)) {
return 144;
}
else {
return 141;
}
}
}
}
else {
if ($lng < 108.915218) {
if (static::$polygon[2502]
->isInside($lat, $lng)) {
return 141;
}
else {
return 289;
}
}
else {
if ($lat < 69.71004499999999) {
return 141;
}
else {
if ($lng < 110.820509) {
if (static::$polygon[2503]
->isInside($lat, $lng)) {
return 289;
}
else {
return 141;
}
}
else {
if (static::$polygon[2504]
->isInside($lat, $lng)) {
return 289;
}
else {
return 141;
}
}
}
}
}
}
else {
if (static::$polygon[2505]
->isInside($lat, $lng)) {
return 144;
}
else {
return 141;
}
}
}
else {
if ($lng < 108.341057) {
return 289;
}
else {
if (static::$polygon[2506]
->isInside($lat, $lng)) {
return 141;
}
else {
return 289;
}
}
}
}
else {
if ($lng < 113.919746) {
if ($lng < 109.343498) {
return 289;
}
else {
if ($lat < 74.04972100000001) {
if ($lng < 111.589165) {
if (static::$polygon[2507]
->isInside($lat, $lng)) {
return 141;
}
else {
return 289;
}
}
else {
return 141;
}
}
else {
if ($lng < 111.209999) {
if (static::$polygon[2508]
->isInside($lat, $lng)) {
return 141;
}
else {
return 289;
}
}
else {
if ($lat < 74.551941) {
return 141;
}
else {
if (static::$polygon[2509]
->isInside($lat, $lng)) {
return 141;
}
else {
return 289;
}
}
}
}
}
}
else {
return 141;
}
}
}
else {
return 289;
}
}
else {
return 141;
}
}
}