private static function GeoTimezone::tryGetTzIndex46 in Geo Time Zone 7.2
Same name and namespace in other branches
- 8.3 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex46()
- 8 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex46()
- 8.2 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex46()
- 6.2 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex46()
- 6 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex46()
- 7 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex46()
1 call to GeoTimezone::tryGetTzIndex46()
File
- src/
GeoTimezone.php, line 38524 - Contains \Drupal\geotimezone\GeoTimezone.
Class
- GeoTimezone
- Determine the time zone based on coordinates.
Namespace
Drupal\geotimezoneCode
private static function tryGetTzIndex46($lat, $lng) {
if ($lat < 54.555332) {
if ($lng < 141.54631) {
if ($lng < 134.959961) {
if ($lng < 132.286469) {
if ($lat < 52.739679) {
if (static::$polygon[2510]
->isInside($lat, $lng)) {
return 37;
}
else {
return 141;
}
}
else {
if (static::$polygon[2511]
->isInside($lat, $lng)) {
return 37;
}
else {
return 141;
}
}
}
else {
if ($lat < 52.739679) {
if (static::$polygon[2512]
->isInside($lat, $lng)) {
return 141;
}
else {
return 37;
}
}
else {
if ($lng < 133.623215) {
if (static::$polygon[2513]
->isInside($lat, $lng)) {
return 141;
}
else {
return 37;
}
}
else {
if (static::$polygon[2514]
->isInside($lat, $lng)) {
return 141;
}
else {
return 37;
}
}
}
}
}
else {
return 37;
}
}
else {
return 36;
}
}
else {
if ($lat < 55.194805) {
if ($lng < 132.413686) {
if (static::$polygon[2515]
->isInside($lat, $lng)) {
return 37;
}
else {
return 141;
}
}
else {
return 37;
}
}
else {
if ($lat < 71.260391) {
if ($lng < 139.044365) {
if ($lat < 63.227598) {
if ($lng < 134.328671) {
if ($lat < 59.211202) {
if ($lng < 131.970823) {
if ($lat < 57.203003) {
if ($lng < 130.7919) {
return 141;
}
else {
if ($lat < 56.198904) {
if (static::$polygon[2516]
->isInside($lat, $lng)) {
return 37;
}
else {
return 141;
}
}
else {
if (static::$polygon[2517]
->isInside($lat, $lng)) {
return 141;
}
else {
return 37;
}
}
}
}
else {
if (static::$polygon[2518]
->isInside($lat, $lng)) {
return 37;
}
if (static::$polygon[2519]
->isInside($lat, $lng)) {
return 37;
}
if (static::$polygon[2520]
->isInside($lat, $lng)) {
return 37;
}
if (static::$polygon[2521]
->isInside($lat, $lng)) {
return 104;
}
else {
return 141;
}
}
}
else {
if ($lat < 57.203003) {
if (static::$polygon[2522]
->isInside($lat, $lng)) {
return 141;
}
else {
return 37;
}
}
else {
if ($lng < 133.149747) {
if (static::$polygon[2523]
->isInside($lat, $lng)) {
return 104;
}
if (static::$polygon[2524]
->isInside($lat, $lng)) {
return 141;
}
if (static::$polygon[2525]
->isInside($lat, $lng)) {
return 141;
}
if (static::$polygon[2526]
->isInside($lat, $lng)) {
return 141;
}
else {
return 37;
}
}
else {
if (static::$polygon[2527]
->isInside($lat, $lng)) {
return 104;
}
if (static::$polygon[2528]
->isInside($lat, $lng)) {
return 104;
}
else {
return 37;
}
}
}
}
}
else {
if (static::$polygon[2529]
->isInside($lat, $lng)) {
return 37;
}
if (static::$polygon[2530]
->isInside($lat, $lng)) {
return 141;
}
else {
return 104;
}
}
}
else {
if ($lat < 59.211202) {
if (static::$polygon[2531]
->isInside($lat, $lng)) {
return 104;
}
if (static::$polygon[2532]
->isInside($lat, $lng)) {
return 104;
}
else {
return 37;
}
}
else {
if ($lng < 136.686518) {
if (static::$polygon[2533]
->isInside($lat, $lng)) {
return 37;
}
if (static::$polygon[2534]
->isInside($lat, $lng)) {
return 37;
}
if (static::$polygon[2535]
->isInside($lat, $lng)) {
return 141;
}
else {
return 104;
}
}
else {
if ($lat < 61.2194) {
if ($lng < 137.865441) {
if (static::$polygon[2536]
->isInside($lat, $lng)) {
return 104;
}
else {
return 37;
}
}
else {
if (static::$polygon[2537]
->isInside($lat, $lng)) {
return 104;
}
else {
return 37;
}
}
}
else {
if (static::$polygon[2538]
->isInside($lat, $lng)) {
return 37;
}
if (static::$polygon[2539]
->isInside($lat, $lng)) {
return 37;
}
else {
return 104;
}
}
}
}
}
}
else {
if ($lng < 134.328671) {
if ($lat < 67.243995) {
if ($lng < 131.970823) {
if (static::$polygon[2540]
->isInside($lat, $lng)) {
return 37;
}
else {
return 141;
}
}
else {
if (static::$polygon[2541]
->isInside($lat, $lng)) {
return 37;
}
if (static::$polygon[2542]
->isInside($lat, $lng)) {
return 141;
}
if (static::$polygon[2543]
->isInside($lat, $lng)) {
return 141;
}
else {
return 104;
}
}
}
else {
if (static::$polygon[2544]
->isInside($lat, $lng)) {
return 37;
}
else {
return 141;
}
}
}
else {
if (static::$polygon[2545]
->isInside($lat, $lng)) {
return 46;
}
if (static::$polygon[2546]
->isInside($lat, $lng)) {
return 104;
}
else {
return 37;
}
}
}
}
else {
if ($lat < 64.217725) {
if ($lng < 143.760059) {
if ($lat < 60.696391) {
return 37;
}
else {
if ($lng < 141.402212) {
if ($lat < 62.457058) {
if (static::$polygon[2547]
->isInside($lat, $lng)) {
return 104;
}
if (static::$polygon[2548]
->isInside($lat, $lng)) {
return 104;
}
if (static::$polygon[2549]
->isInside($lat, $lng)) {
return 140;
}
if (static::$polygon[2550]
->isInside($lat, $lng)) {
return 140;
}
else {
return 37;
}
}
else {
if (static::$polygon[2551]
->isInside($lat, $lng)) {
return 37;
}
if (static::$polygon[2552]
->isInside($lat, $lng)) {
return 104;
}
else {
return 140;
}
}
}
else {
if (static::$polygon[2553]
->isInside($lat, $lng)) {
return 140;
}
else {
return 37;
}
}
}
}
else {
if ($lat < 61.679001) {
if ($lng < 146.117907) {
if (static::$polygon[2554]
->isInside($lat, $lng)) {
return 46;
}
else {
return 37;
}
}
else {
if ($lat < 60.425264) {
if (static::$polygon[2555]
->isInside($lat, $lng)) {
return 37;
}
else {
return 46;
}
}
else {
if (static::$polygon[2556]
->isInside($lat, $lng)) {
return 37;
}
else {
return 46;
}
}
}
}
else {
if ($lng < 146.117907) {
if ($lat < 62.948363) {
if ($lng < 144.938983) {
if (static::$polygon[2557]
->isInside($lat, $lng)) {
return 46;
}
if (static::$polygon[2558]
->isInside($lat, $lng)) {
return 140;
}
else {
return 37;
}
}
else {
if (static::$polygon[2559]
->isInside($lat, $lng)) {
return 37;
}
if (static::$polygon[2560]
->isInside($lat, $lng)) {
return 140;
}
else {
return 46;
}
}
}
else {
if (static::$polygon[2561]
->isInside($lat, $lng)) {
return 46;
}
else {
return 140;
}
}
}
else {
if (static::$polygon[2562]
->isInside($lat, $lng)) {
return 37;
}
if (static::$polygon[2563]
->isInside($lat, $lng)) {
return 140;
}
else {
return 46;
}
}
}
}
}
else {
if ($lng < 143.760059) {
if ($lat < 67.739058) {
if ($lng < 141.402212) {
if ($lat < 65.978391) {
if (static::$polygon[2564]
->isInside($lat, $lng)) {
return 37;
}
if (static::$polygon[2565]
->isInside($lat, $lng)) {
return 46;
}
if (static::$polygon[2566]
->isInside($lat, $lng)) {
return 140;
}
else {
return 104;
}
}
else {
if (static::$polygon[2567]
->isInside($lat, $lng)) {
return 46;
}
else {
return 37;
}
}
}
else {
if (static::$polygon[2568]
->isInside($lat, $lng)) {
return 140;
}
else {
return 46;
}
}
}
else {
if (static::$polygon[2569]
->isInside($lat, $lng)) {
return 46;
}
else {
return 37;
}
}
}
else {
if (static::$polygon[2570]
->isInside($lat, $lng)) {
return 140;
}
else {
return 46;
}
}
}
}
}
else {
if ($lng < 138.020813) {
return 37;
}
else {
if (static::$polygon[2571]
->isInside($lat, $lng)) {
return 46;
}
else {
return 37;
}
}
}
}
}
}