private static function GeoTimezone::tryGetTzIndex28 in Geo Time Zone 6.2
Same name and namespace in other branches
- 8.3 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex28()
- 8 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex28()
- 8.2 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex28()
- 6 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex28()
- 7.2 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex28()
- 7 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex28()
1 call to GeoTimezone::tryGetTzIndex28()
File
- src/
GeoTimezone.php, line 25919 - Contains \Drupal\geotimezone\GeoTimezone.
Class
- GeoTimezone
- Determine the time zone based on coordinates.
Namespace
Drupal\geotimezoneCode
private static function tryGetTzIndex28($lat, $lng) {
if ($lng < 21.25436) {
if ($lat < 41.371582) {
if ($lng < 16.637009) {
if ($lat < 37.543915) {
if ($lng < 11.13575) {
if ($lng < 8.672027999999999) {
if ($lat < 36.824917) {
if (static::$polygon[1585]
->isInside($lat, $lng)) {
return 318;
}
else {
return 380;
}
}
else {
if (static::$polygon[1586]
->isInside($lat, $lng)) {
return 318;
}
else {
return 380;
}
}
}
else {
return 318;
}
}
else {
return 271;
}
}
else {
return 271;
}
}
else {
if ($lat < 38.677971) {
return 152;
}
else {
if ($lng < 19.537333) {
if ($lng < 18.513445) {
return 271;
}
else {
if ($lat < 39.873859) {
return 152;
}
else {
return 75;
}
}
}
else {
if ($lat < 39.251167) {
return 152;
}
else {
if ($lng < 19.598167) {
if ($lat < 40.038214) {
return 75;
}
else {
return 152;
}
}
else {
if ($lat < 40.311375) {
if (static::$polygon[1587]
->isInside($lat, $lng)) {
return 75;
}
else {
return 152;
}
}
else {
if (static::$polygon[1588]
->isInside($lat, $lng)) {
return 152;
}
if (static::$polygon[1589]
->isInside($lat, $lng)) {
return 337;
}
else {
return 75;
}
}
}
}
}
}
}
}
else {
if ($lng < 15.454583) {
if ($lat < 44.272278) {
if ($lng < 11.115666) {
if ($lng < 9.561556) {
if ($lng < 8.461638000000001) {
if ($lat < 43.769527) {
if (static::$polygon[1590]
->isInside($lat, $lng)) {
return 261;
}
else {
return 297;
}
}
else {
if (static::$polygon[1591]
->isInside($lat, $lng)) {
return 297;
}
else {
return 271;
}
}
}
else {
if ($lat < 43.606562) {
return 271;
}
else {
return 297;
}
}
}
else {
return 271;
}
}
else {
if ($lat < 43.999805) {
if ($lng < 15.228278) {
if ($lng < 12.515555) {
if (static::$polygon[1592]
->isInside($lat, $lng)) {
return 313;
}
else {
return 271;
}
}
else {
if (static::$polygon[1593]
->isInside($lat, $lng)) {
return 30;
}
if (static::$polygon[1594]
->isInside($lat, $lng)) {
return 30;
}
if (static::$polygon[1595]
->isInside($lat, $lng)) {
return 30;
}
else {
return 271;
}
}
}
else {
if ($lat < 41.926615) {
return 271;
}
else {
return 30;
}
}
}
else {
if ($lng < 12.678526) {
return 271;
}
else {
return 30;
}
}
}
}
else {
if ($lng < 12.496844) {
return 271;
}
else {
return 30;
}
}
}
else {
if ($lng < 16.283112) {
if ($lat < 43.460499) {
if ($lat < 42.126751) {
return 271;
}
else {
return 30;
}
}
else {
if ($lat < 43.866528) {
return 30;
}
else {
if (static::$polygon[1596]
->isInside($lat, $lng)) {
return 348;
}
else {
return 30;
}
}
}
}
else {
if ($lng < 17.754278) {
if ($lat < 42.806278) {
return 30;
}
else {
if ($lat < 43.099861) {
if ($lng < 17.201416) {
return 30;
}
else {
if (static::$polygon[1597]
->isInside($lat, $lng)) {
return 348;
}
else {
return 30;
}
}
}
else {
if ($lat < 43.236) {
if ($lng < 17.194445) {
return 30;
}
else {
if (static::$polygon[1598]
->isInside($lat, $lng)) {
return 348;
}
else {
return 30;
}
}
}
else {
if (static::$polygon[1599]
->isInside($lat, $lng)) {
return 348;
}
else {
return 30;
}
}
}
}
}
else {
if ($lng < 18.018444) {
if ($lat < 42.755833) {
return 30;
}
else {
if (static::$polygon[1600]
->isInside($lat, $lng)) {
return 348;
}
else {
return 30;
}
}
}
else {
if ($lng < 19.088497) {
if ($lat < 43.558743) {
if ($lat < 42.091462) {
return 212;
}
else {
if ($lat < 42.833974) {
if (static::$polygon[1601]
->isInside($lat, $lng)) {
return 30;
}
if (static::$polygon[1602]
->isInside($lat, $lng)) {
return 348;
}
else {
return 212;
}
}
else {
if (static::$polygon[1603]
->isInside($lat, $lng)) {
return 212;
}
else {
return 348;
}
}
}
}
else {
if (static::$polygon[1604]
->isInside($lat, $lng)) {
return 30;
}
if (static::$polygon[1605]
->isInside($lat, $lng)) {
return 209;
}
else {
return 348;
}
}
}
else {
if ($lat < 43.128445) {
if ($lng < 20.171428) {
if ($lat < 42.250013) {
if (static::$polygon[1606]
->isInside($lat, $lng)) {
return 212;
}
else {
return 75;
}
}
else {
if (static::$polygon[1607]
->isInside($lat, $lng)) {
return 75;
}
if (static::$polygon[1608]
->isInside($lat, $lng)) {
return 209;
}
if (static::$polygon[1609]
->isInside($lat, $lng)) {
return 209;
}
else {
return 212;
}
}
}
else {
if ($lat < 42.250013) {
if (static::$polygon[1610]
->isInside($lat, $lng)) {
return 75;
}
if (static::$polygon[1611]
->isInside($lat, $lng)) {
return 209;
}
else {
return 337;
}
}
else {
if (static::$polygon[1612]
->isInside($lat, $lng)) {
return 75;
}
if (static::$polygon[1613]
->isInside($lat, $lng)) {
return 212;
}
else {
return 209;
}
}
}
}
else {
if ($lng < 20.171428) {
if ($lat < 44.006876) {
if (static::$polygon[1614]
->isInside($lat, $lng)) {
return 212;
}
if (static::$polygon[1615]
->isInside($lat, $lng)) {
return 348;
}
if (static::$polygon[1616]
->isInside($lat, $lng)) {
return 348;
}
else {
return 209;
}
}
else {
if (static::$polygon[1617]
->isInside($lat, $lng)) {
return 209;
}
if (static::$polygon[1618]
->isInside($lat, $lng)) {
return 209;
}
else {
return 348;
}
}
}
else {
return 209;
}
}
}
}
}
}
}
}
}
else {
if ($lng < 25.743999) {
if ($lat < 40.022305) {
return 152;
}
else {
if ($lat < 40.350529) {
if ($lng < 25.432277) {
return 152;
}
else {
return 205;
}
}
else {
if ($lat < 40.806194) {
return 152;
}
else {
if ($lat < 41.580002) {
if ($lng < 23.49918) {
if (static::$polygon[1619]
->isInside($lat, $lng)) {
return 337;
}
if (static::$polygon[1620]
->isInside($lat, $lng)) {
return 340;
}
else {
return 152;
}
}
else {
if (static::$polygon[1621]
->isInside($lat, $lng)) {
return 340;
}
else {
return 152;
}
}
}
else {
if ($lng < 23.49918) {
if ($lat < 43.232655) {
if ($lng < 22.37677) {
if (static::$polygon[1622]
->isInside($lat, $lng)) {
return 337;
}
if (static::$polygon[1623]
->isInside($lat, $lng)) {
return 340;
}
else {
return 209;
}
}
else {
if (static::$polygon[1624]
->isInside($lat, $lng)) {
return 209;
}
if (static::$polygon[1625]
->isInside($lat, $lng)) {
return 337;
}
else {
return 340;
}
}
}
else {
if ($lng < 22.37677) {
if (static::$polygon[1626]
->isInside($lat, $lng)) {
return 266;
}
if (static::$polygon[1627]
->isInside($lat, $lng)) {
return 340;
}
else {
return 209;
}
}
else {
if ($lat < 44.058981) {
if (static::$polygon[1628]
->isInside($lat, $lng)) {
return 209;
}
if (static::$polygon[1629]
->isInside($lat, $lng)) {
return 209;
}
if (static::$polygon[1630]
->isInside($lat, $lng)) {
return 266;
}
else {
return 340;
}
}
else {
if (static::$polygon[1631]
->isInside($lat, $lng)) {
return 209;
}
if (static::$polygon[1632]
->isInside($lat, $lng)) {
return 340;
}
else {
return 266;
}
}
}
}
}
else {
if (static::$polygon[1633]
->isInside($lat, $lng)) {
return 340;
}
else {
return 266;
}
}
}
}
}
}
}
else {
if ($lat < 37.410751) {
if ($lng < 27.176777) {
return 152;
}
else {
if ($lng < 27.874916) {
if ($lat < 36.917999) {
if ($lng < 27.357195) {
return 152;
}
else {
if ($lat < 36.640251) {
if ($lat < 36.533819) {
return 152;
}
else {
return 205;
}
}
else {
return 205;
}
}
}
else {
if ($lng < 27.224751) {
if ($lat < 37.182851) {
return 152;
}
else {
return 205;
}
}
else {
return 205;
}
}
}
else {
if ($lng < 35.659962) {
return 205;
}
else {
if ($lng < 35.722252) {
return 205;
}
else {
if ($lng < 39.460653) {
if (static::$polygon[1634]
->isInside($lat, $lng)) {
return 368;
}
else {
return 205;
}
}
else {
if (static::$polygon[1635]
->isInside($lat, $lng)) {
return 28;
}
if (static::$polygon[1636]
->isInside($lat, $lng)) {
return 368;
}
else {
return 205;
}
}
}
}
}
}
}
else {
if ($lat < 39.399502) {
if ($lat < 37.81461) {
if ($lng < 26.808306) {
return 152;
}
else {
if ($lng < 27.069723) {
if ($lat < 37.476891) {
return 152;
}
else {
if (static::$polygon[1637]
->isInside($lat, $lng)) {
return 205;
}
else {
return 152;
}
}
}
else {
return 205;
}
}
}
else {
if ($lng < 26.619278) {
if ($lat < 38.682251) {
if ($lng < 26.165445) {
return 152;
}
else {
if ($lng < 26.29464) {
if ($lat < 38.379166) {
return 205;
}
else {
return 152;
}
}
else {
return 205;
}
}
}
else {
if ($lng < 26.603834) {
if ($lng < 25.845306) {
return 152;
}
else {
if ($lat < 39.307919) {
if (static::$polygon[1638]
->isInside($lat, $lng)) {
return 205;
}
else {
return 152;
}
}
else {
if ($lng < 26.500569) {
return 152;
}
else {
return 205;
}
}
}
}
else {
if ($lat < 39.053222) {
return 152;
}
else {
return 205;
}
}
}
}
else {
return 205;
}
}
}
else {
if ($lat < 40.677166) {
return 205;
}
else {
if ($lng < 29.620806) {
if ($lat < 42.107613) {
if ($lng < 28.043638) {
if ($lng < 26.893819) {
if ($lat < 41.392389) {
if (static::$polygon[1639]
->isInside($lat, $lng)) {
return 205;
}
if (static::$polygon[1640]
->isInside($lat, $lng)) {
return 340;
}
else {
return 152;
}
}
else {
if (static::$polygon[1641]
->isInside($lat, $lng)) {
return 152;
}
if (static::$polygon[1642]
->isInside($lat, $lng)) {
return 205;
}
else {
return 340;
}
}
}
else {
if (static::$polygon[1643]
->isInside($lat, $lng)) {
return 340;
}
else {
return 205;
}
}
}
else {
return 205;
}
}
else {
if ($lng < 28.612167) {
if (static::$polygon[1644]
->isInside($lat, $lng)) {
return 266;
}
else {
return 340;
}
}
else {
return 266;
}
}
}
else {
if ($lng < 35.162596) {
if ($lat < 43.246111) {
return 197;
}
else {
return 205;
}
}
else {
if ($lng < 35.221638) {
return 205;
}
else {
if ($lat < 41.763479) {
if (static::$polygon[1645]
->isInside($lat, $lng)) {
return 47;
}
else {
return 205;
}
}
else {
if ($lng < 40.250756) {
if (static::$polygon[1646]
->isInside($lat, $lng)) {
return 47;
}
else {
return 183;
}
}
else {
if (static::$polygon[1647]
->isInside($lat, $lng)) {
return 183;
}
else {
return 47;
}
}
}
}
}
}
}
}
}
}
}
}