private static function GeoTimezone::tryGetTzIndex31 in Geo Time Zone 6
Same name and namespace in other branches
- 8.3 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex31()
- 8 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex31()
- 8.2 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex31()
- 6.2 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex31()
- 7.2 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex31()
- 7 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex31()
1 call to GeoTimezone::tryGetTzIndex31()
File
- src/
GeoTimezone.php, line 31788 - Contains \Drupal\geotimezone\GeoTimezoneMap.
Class
- GeoTimezone
- Determine the timezone based on coordinates.
Namespace
Drupal\geotimezoneCode
private static function tryGetTzIndex31($lat, $lng) {
if ($lat < 55.192631) {
if ($lng < 55.123322) {
if ($lat < 50.932056) {
if ($lat < 47.893608) {
if (static::$polygon[1722]
->isInside($lat, $lng)) {
return 240;
}
else {
return 120;
}
}
else {
if ($lng < 52.374453) {
if (static::$polygon[1723]
->isInside($lat, $lng)) {
return 120;
}
else {
return 115;
}
}
else {
if ($lat < 49.412832) {
if (static::$polygon[1724]
->isInside($lat, $lng)) {
return 115;
}
if (static::$polygon[1725]
->isInside($lat, $lng)) {
return 240;
}
else {
return 120;
}
}
else {
if (static::$polygon[1726]
->isInside($lat, $lng)) {
return 115;
}
if (static::$polygon[1727]
->isInside($lat, $lng)) {
return 178;
}
if (static::$polygon[1728]
->isInside($lat, $lng)) {
return 178;
}
else {
return 240;
}
}
}
}
}
else {
if ($lat < 52.307041) {
if ($lng < 52.374453) {
if ($lng < 51.000018) {
if ($lat < 51.619549) {
if (static::$polygon[1729]
->isInside($lat, $lng)) {
return 99;
}
if (static::$polygon[1730]
->isInside($lat, $lng)) {
return 99;
}
else {
return 115;
}
}
else {
if (static::$polygon[1731]
->isInside($lat, $lng)) {
return 115;
}
if (static::$polygon[1732]
->isInside($lat, $lng)) {
return 115;
}
if (static::$polygon[1733]
->isInside($lat, $lng)) {
return 157;
}
if (static::$polygon[1734]
->isInside($lat, $lng)) {
return 178;
}
else {
return 99;
}
}
}
else {
if (static::$polygon[1735]
->isInside($lat, $lng)) {
return 115;
}
if (static::$polygon[1736]
->isInside($lat, $lng)) {
return 157;
}
else {
return 178;
}
}
}
else {
if (static::$polygon[1737]
->isInside($lat, $lng)) {
return 178;
}
else {
return 115;
}
}
}
else {
if ($lng < 52.374453) {
if ($lat < 53.749836) {
if (static::$polygon[1738]
->isInside($lat, $lng)) {
return 99;
}
if (static::$polygon[1739]
->isInside($lat, $lng)) {
return 178;
}
else {
return 157;
}
}
else {
if ($lng < 51.000018) {
if (static::$polygon[1740]
->isInside($lat, $lng)) {
return 183;
}
else {
return 157;
}
}
else {
if (static::$polygon[1741]
->isInside($lat, $lng)) {
return 178;
}
if (static::$polygon[1742]
->isInside($lat, $lng)) {
return 178;
}
if (static::$polygon[1743]
->isInside($lat, $lng)) {
return 178;
}
if (static::$polygon[1744]
->isInside($lat, $lng)) {
return 183;
}
else {
return 157;
}
}
}
}
else {
if ($lat < 53.749836) {
return 178;
}
else {
if ($lng < 53.748887) {
if ($lat < 54.471233) {
if ($lng < 53.06167) {
if (static::$polygon[1745]
->isInside($lat, $lng)) {
return 157;
}
if (static::$polygon[1746]
->isInside($lat, $lng)) {
return 157;
}
if (static::$polygon[1747]
->isInside($lat, $lng)) {
return 157;
}
if (static::$polygon[1748]
->isInside($lat, $lng)) {
return 183;
}
if (static::$polygon[1749]
->isInside($lat, $lng)) {
return 183;
}
if (static::$polygon[1750]
->isInside($lat, $lng)) {
return 183;
}
else {
return 178;
}
}
else {
if (static::$polygon[1751]
->isInside($lat, $lng)) {
return 183;
}
else {
return 178;
}
}
}
else {
if (static::$polygon[1752]
->isInside($lat, $lng)) {
return 157;
}
if (static::$polygon[1753]
->isInside($lat, $lng)) {
return 178;
}
else {
return 183;
}
}
}
else {
return 178;
}
}
}
}
}
}
else {
if ($lng < 61.844131) {
if ($lat < 51.50923) {
if ($lng < 58.483727) {
if (static::$polygon[1754]
->isInside($lat, $lng)) {
return 240;
}
else {
return 178;
}
}
else {
if (static::$polygon[1755]
->isInside($lat, $lng)) {
return 239;
}
if (static::$polygon[1756]
->isInside($lat, $lng)) {
return 240;
}
else {
return 178;
}
}
}
else {
if ($lng < 58.483727) {
return 178;
}
else {
if ($lat < 53.35093) {
if (static::$polygon[1757]
->isInside($lat, $lng)) {
return 239;
}
if (static::$polygon[1758]
->isInside($lat, $lng)) {
return 239;
}
else {
return 178;
}
}
else {
if (static::$polygon[1759]
->isInside($lat, $lng)) {
return 239;
}
else {
return 178;
}
}
}
}
}
else {
if ($lat < 51.50923) {
if ($lng < 65.204536) {
if ($lat < 49.667529) {
if (static::$polygon[1760]
->isInside($lat, $lng)) {
return 240;
}
if (static::$polygon[1761]
->isInside($lat, $lng)) {
return 347;
}
else {
return 239;
}
}
else {
if (static::$polygon[1762]
->isInside($lat, $lng)) {
return 240;
}
else {
return 239;
}
}
}
else {
if (static::$polygon[1763]
->isInside($lat, $lng)) {
return 239;
}
else {
return 347;
}
}
}
else {
if ($lng < 65.204536) {
if ($lat < 53.35093) {
if (static::$polygon[1764]
->isInside($lat, $lng)) {
return 178;
}
else {
return 239;
}
}
else {
if (static::$polygon[1765]
->isInside($lat, $lng)) {
return 239;
}
if (static::$polygon[1766]
->isInside($lat, $lng)) {
return 239;
}
else {
return 178;
}
}
}
else {
if ($lat < 53.35093) {
if (static::$polygon[1767]
->isInside($lat, $lng)) {
return 347;
}
else {
return 239;
}
}
else {
if ($lng < 66.884739) {
if (static::$polygon[1768]
->isInside($lat, $lng)) {
return 178;
}
if (static::$polygon[1769]
->isInside($lat, $lng)) {
return 178;
}
if (static::$polygon[1770]
->isInside($lat, $lng)) {
return 347;
}
else {
return 239;
}
}
else {
if (static::$polygon[1771]
->isInside($lat, $lng)) {
return 178;
}
else {
return 347;
}
}
}
}
}
}
}
}
else {
if ($lng < 59.095263) {
if ($lat < 60.730856) {
if ($lng < 54.360423) {
if ($lat < 57.961743) {
if ($lng < 51.993003) {
if ($lat < 56.577187) {
if ($lng < 50.809294) {
if (static::$polygon[1772]
->isInside($lat, $lng)) {
return 99;
}
else {
return 183;
}
}
else {
if ($lat < 55.884909) {
if (static::$polygon[1773]
->isInside($lat, $lng)) {
return 157;
}
else {
return 183;
}
}
else {
if ($lng < 51.401148) {
if (static::$polygon[1774]
->isInside($lat, $lng)) {
return 157;
}
if (static::$polygon[1775]
->isInside($lat, $lng)) {
return 157;
}
if (static::$polygon[1776]
->isInside($lat, $lng)) {
return 157;
}
if (static::$polygon[1777]
->isInside($lat, $lng)) {
return 183;
}
else {
return 99;
}
}
else {
if (static::$polygon[1778]
->isInside($lat, $lng)) {
return 99;
}
if (static::$polygon[1779]
->isInside($lat, $lng)) {
return 99;
}
if (static::$polygon[1780]
->isInside($lat, $lng)) {
return 183;
}
if (static::$polygon[1781]
->isInside($lat, $lng)) {
return 183;
}
if (static::$polygon[1782]
->isInside($lat, $lng)) {
return 183;
}
else {
return 157;
}
}
}
}
}
else {
if ($lng < 50.809294) {
if (static::$polygon[1783]
->isInside($lat, $lng)) {
return 183;
}
else {
return 99;
}
}
else {
if (static::$polygon[1784]
->isInside($lat, $lng)) {
return 157;
}
else {
return 99;
}
}
}
}
else {
if ($lat < 56.577187) {
if ($lng < 53.176713) {
if ($lat < 55.884909) {
return 183;
}
else {
if ($lng < 52.584858) {
if (static::$polygon[1785]
->isInside($lat, $lng)) {
return 157;
}
else {
return 183;
}
}
else {
if (static::$polygon[1786]
->isInside($lat, $lng)) {
return 183;
}
else {
return 157;
}
}
}
}
else {
if ($lat < 55.884909) {
if (static::$polygon[1787]
->isInside($lat, $lng)) {
return 157;
}
if (static::$polygon[1788]
->isInside($lat, $lng)) {
return 178;
}
else {
return 183;
}
}
else {
if (static::$polygon[1789]
->isInside($lat, $lng)) {
return 178;
}
if (static::$polygon[1790]
->isInside($lat, $lng)) {
return 178;
}
if (static::$polygon[1791]
->isInside($lat, $lng)) {
return 183;
}
if (static::$polygon[1792]
->isInside($lat, $lng)) {
return 183;
}
else {
return 157;
}
}
}
}
else {
if (static::$polygon[1793]
->isInside($lat, $lng)) {
return 178;
}
if (static::$polygon[1794]
->isInside($lat, $lng)) {
return 178;
}
else {
return 157;
}
}
}
}
else {
if ($lng < 51.993003) {
if (static::$polygon[1795]
->isInside($lat, $lng)) {
return 157;
}
if (static::$polygon[1796]
->isInside($lat, $lng)) {
return 178;
}
if (static::$polygon[1797]
->isInside($lat, $lng)) {
return 183;
}
else {
return 99;
}
}
else {
if ($lat < 59.3463) {
if (static::$polygon[1798]
->isInside($lat, $lng)) {
return 157;
}
if (static::$polygon[1799]
->isInside($lat, $lng)) {
return 178;
}
else {
return 99;
}
}
else {
if (static::$polygon[1800]
->isInside($lat, $lng)) {
return 99;
}
if (static::$polygon[1801]
->isInside($lat, $lng)) {
return 183;
}
else {
return 178;
}
}
}
}
}
else {
if (static::$polygon[1802]
->isInside($lat, $lng)) {
return 157;
}
if (static::$polygon[1803]
->isInside($lat, $lng)) {
return 157;
}
else {
return 178;
}
}
}
else {
if (static::$polygon[1804]
->isInside($lat, $lng)) {
return 178;
}
else {
return 183;
}
}
}
else {
if ($lat < 60.730856) {
return 178;
}
else {
if ($lng < 63.830102) {
if ($lat < 63.499969) {
if (static::$polygon[1805]
->isInside($lat, $lng)) {
return 183;
}
else {
return 178;
}
}
else {
if (static::$polygon[1806]
->isInside($lat, $lng)) {
return 183;
}
else {
return 178;
}
}
}
else {
return 178;
}
}
}
}
}