private static function GeoTimezone::tryGetTzIndex44 in Geo Time Zone 6
Same name and namespace in other branches
- 8.3 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex44()
- 8 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex44()
- 8.2 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex44()
- 6.2 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex44()
- 7.2 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex44()
- 7 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex44()
1 call to GeoTimezone::tryGetTzIndex44()
File
- src/
GeoTimezone.php, line 37480 - Contains \Drupal\geotimezone\GeoTimezoneMap.
Class
- GeoTimezone
- Determine the timezone based on coordinates.
Namespace
Drupal\geotimezoneCode
private static function tryGetTzIndex44($lat, $lng) {
if ($lng < 120.827698) {
if ($lat < 43.386189) {
if ($lng < 114.824286) {
if ($lng < 109.964462) {
if (static::$polygon[2417]
->isInside($lat, $lng)) {
return 403;
}
else {
return 123;
}
}
else {
if ($lng < 112.394374) {
if (static::$polygon[2418]
->isInside($lat, $lng)) {
return 123;
}
if (static::$polygon[2419]
->isInside($lat, $lng)) {
return 291;
}
if (static::$polygon[2420]
->isInside($lat, $lng)) {
return 291;
}
else {
return 403;
}
}
else {
if ($lat < 41.384137) {
if (static::$polygon[2421]
->isInside($lat, $lng)) {
return 403;
}
else {
return 291;
}
}
else {
if (static::$polygon[2422]
->isInside($lat, $lng)) {
return 403;
}
else {
return 291;
}
}
}
}
}
else {
return 291;
}
}
else {
if ($lat < 53.269103) {
if ($lng < 112.966167) {
if ($lat < 48.327646) {
if ($lng < 109.035402) {
return 123;
}
else {
if ($lat < 45.856918) {
if (static::$polygon[2423]
->isInside($lat, $lng)) {
return 123;
}
if (static::$polygon[2424]
->isInside($lat, $lng)) {
return 203;
}
else {
return 291;
}
}
else {
if (static::$polygon[2425]
->isInside($lat, $lng)) {
return 203;
}
else {
return 123;
}
}
}
}
else {
if ($lng < 109.035402) {
if ($lat < 50.798375) {
if ($lng < 107.07002) {
if (static::$polygon[2426]
->isInside($lat, $lng)) {
return 123;
}
else {
return 144;
}
}
else {
if ($lat < 49.563011) {
if (static::$polygon[2427]
->isInside($lat, $lng)) {
return 141;
}
else {
return 123;
}
}
else {
if (static::$polygon[2428]
->isInside($lat, $lng)) {
return 123;
}
if (static::$polygon[2429]
->isInside($lat, $lng)) {
return 144;
}
else {
return 141;
}
}
}
}
else {
if (static::$polygon[2430]
->isInside($lat, $lng)) {
return 141;
}
else {
return 144;
}
}
}
else {
if ($lat < 50.798375) {
if (static::$polygon[2431]
->isInside($lat, $lng)) {
return 141;
}
if (static::$polygon[2432]
->isInside($lat, $lng)) {
return 203;
}
else {
return 123;
}
}
else {
if (static::$polygon[2433]
->isInside($lat, $lng)) {
return 144;
}
else {
return 141;
}
}
}
}
}
else {
if ($lat < 48.327646) {
if ($lng < 116.896933) {
if (static::$polygon[2434]
->isInside($lat, $lng)) {
return 203;
}
else {
return 291;
}
}
else {
if ($lat < 45.856918) {
return 291;
}
else {
if ($lng < 118.862315) {
if (static::$polygon[2435]
->isInside($lat, $lng)) {
return 203;
}
else {
return 291;
}
}
else {
if (static::$polygon[2436]
->isInside($lat, $lng)) {
return 203;
}
else {
return 291;
}
}
}
}
}
else {
if ($lng < 116.896933) {
if ($lat < 50.798375) {
if (static::$polygon[2437]
->isInside($lat, $lng)) {
return 141;
}
if (static::$polygon[2438]
->isInside($lat, $lng)) {
return 291;
}
else {
return 203;
}
}
else {
if (static::$polygon[2439]
->isInside($lat, $lng)) {
return 144;
}
else {
return 141;
}
}
}
else {
if ($lat < 50.798375) {
if (static::$polygon[2440]
->isInside($lat, $lng)) {
return 141;
}
else {
return 291;
}
}
else {
if ($lng < 118.862315) {
return 141;
}
else {
if ($lat < 52.033739) {
if (static::$polygon[2441]
->isInside($lat, $lng)) {
return 291;
}
else {
return 141;
}
}
else {
if (static::$polygon[2442]
->isInside($lat, $lng)) {
return 291;
}
else {
return 141;
}
}
}
}
}
}
}
}
else {
if ($lng < 105.495247) {
if ($lat < 59.469437) {
if (static::$polygon[2443]
->isInside($lat, $lng)) {
return 289;
}
else {
return 144;
}
}
else {
if (static::$polygon[2444]
->isInside($lat, $lng)) {
return 289;
}
else {
return 144;
}
}
}
else {
if ($lng < 113.161472) {
if ($lng < 109.32836) {
if (static::$polygon[2445]
->isInside($lat, $lng)) {
return 141;
}
if (static::$polygon[2446]
->isInside($lat, $lng)) {
return 141;
}
else {
return 144;
}
}
else {
if ($lat < 56.783855) {
return 144;
}
else {
if ($lng < 111.244916) {
if (static::$polygon[2447]
->isInside($lat, $lng)) {
return 141;
}
else {
return 144;
}
}
else {
if (static::$polygon[2448]
->isInside($lat, $lng)) {
return 144;
}
else {
return 141;
}
}
}
}
}
else {
if ($lng < 116.994585) {
if ($lat < 56.783855) {
if ($lng < 115.078029) {
if (static::$polygon[2449]
->isInside($lat, $lng)) {
return 141;
}
else {
return 144;
}
}
else {
if ($lat < 55.026479) {
if (static::$polygon[2450]
->isInside($lat, $lng)) {
return 144;
}
else {
return 141;
}
}
else {
if (static::$polygon[2451]
->isInside($lat, $lng)) {
return 141;
}
else {
return 144;
}
}
}
}
else {
if (static::$polygon[2452]
->isInside($lat, $lng)) {
return 144;
}
else {
return 141;
}
}
}
else {
if ($lat < 56.783855) {
if (static::$polygon[2453]
->isInside($lat, $lng)) {
return 144;
}
else {
return 141;
}
}
else {
if ($lng < 118.911141) {
if ($lat < 58.541231) {
if ($lng < 117.952863) {
if (static::$polygon[2454]
->isInside($lat, $lng)) {
return 141;
}
else {
return 144;
}
}
else {
if (static::$polygon[2455]
->isInside($lat, $lng)) {
return 144;
}
else {
return 141;
}
}
}
else {
if (static::$polygon[2456]
->isInside($lat, $lng)) {
return 144;
}
else {
return 141;
}
}
}
else {
if (static::$polygon[2457]
->isInside($lat, $lng)) {
return 144;
}
else {
return 141;
}
}
}
}
}
}
}
}
}
else {
if ($lat < 40.943722) {
return 291;
}
else {
if ($lat < 48.188303) {
if ($lat < 44.566012) {
if (static::$polygon[2458]
->isInside($lat, $lng)) {
return 42;
}
else {
return 291;
}
}
else {
if ($lat < 46.377158) {
if (static::$polygon[2459]
->isInside($lat, $lng)) {
return 291;
}
else {
return 42;
}
}
else {
if (static::$polygon[2460]
->isInside($lat, $lng)) {
return 42;
}
else {
return 291;
}
}
}
}
else {
if ($lat < 52.939128) {
if (static::$polygon[2461]
->isInside($lat, $lng)) {
return 42;
}
else {
return 291;
}
}
else {
if (static::$polygon[2462]
->isInside($lat, $lng)) {
return 291;
}
else {
return 141;
}
}
}
}
}
}