private static function GeoTimezone::tryGetTzIndex33 in Geo Time Zone 6.2
Same name and namespace in other branches
- 8.3 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex33()
- 8 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex33()
- 8.2 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex33()
- 6 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex33()
- 7.2 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex33()
- 7 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex33()
1 call to GeoTimezone::tryGetTzIndex33()
File
- src/
GeoTimezone.php, line 30790 - Contains \Drupal\geotimezone\GeoTimezone.
Class
- GeoTimezone
- Determine the time zone based on coordinates.
Namespace
Drupal\geotimezoneCode
private static function tryGetTzIndex33($lat, $lng) {
if ($lng < 49.249474) {
if ($lat < 30.415028) {
if ($lng < 48.575916) {
if ($lng < 47.971863) {
if (static::$polygon[1861]
->isInside($lat, $lng)) {
return 28;
}
if (static::$polygon[1862]
->isInside($lat, $lng)) {
return 28;
}
if (static::$polygon[1863]
->isInside($lat, $lng)) {
return 163;
}
else {
return 231;
}
}
else {
if ($lat < 29.472639) {
if ($lat < 28.535639) {
if (static::$polygon[1864]
->isInside($lat, $lng)) {
return 231;
}
else {
return 163;
}
}
else {
return 231;
}
}
else {
if ($lat < 29.903723) {
return 231;
}
else {
if ($lng < 48.015431) {
if ($lat < 29.993876) {
return 28;
}
else {
return 231;
}
}
else {
if (static::$polygon[1865]
->isInside($lat, $lng)) {
return 28;
}
if (static::$polygon[1866]
->isInside($lat, $lng)) {
return 55;
}
else {
return 231;
}
}
}
}
}
}
else {
if ($lat < 28.263104) {
return 163;
}
else {
return 55;
}
}
}
else {
if ($lng < 49.007973) {
if ($lat < 37.350142) {
if ($lng < 48.168983) {
if ($lat < 33.882585) {
if ($lng < 45.684019) {
if (static::$polygon[1867]
->isInside($lat, $lng)) {
return 55;
}
else {
return 28;
}
}
else {
if ($lat < 32.148806) {
if (static::$polygon[1868]
->isInside($lat, $lng)) {
return 55;
}
else {
return 28;
}
}
else {
if (static::$polygon[1869]
->isInside($lat, $lng)) {
return 28;
}
else {
return 55;
}
}
}
}
else {
if ($lng < 45.684019) {
if ($lat < 35.616364) {
if (static::$polygon[1870]
->isInside($lat, $lng)) {
return 55;
}
if (static::$polygon[1871]
->isInside($lat, $lng)) {
return 55;
}
else {
return 28;
}
}
else {
if ($lng < 44.441537) {
if (static::$polygon[1872]
->isInside($lat, $lng)) {
return 205;
}
else {
return 28;
}
}
else {
if ($lat < 36.483253) {
if (static::$polygon[1873]
->isInside($lat, $lng)) {
return 55;
}
else {
return 28;
}
}
else {
if (static::$polygon[1874]
->isInside($lat, $lng)) {
return 55;
}
if (static::$polygon[1875]
->isInside($lat, $lng)) {
return 205;
}
else {
return 28;
}
}
}
}
}
else {
if ($lat < 35.616364) {
if (static::$polygon[1876]
->isInside($lat, $lng)) {
return 28;
}
if (static::$polygon[1877]
->isInside($lat, $lng)) {
return 28;
}
else {
return 55;
}
}
else {
if (static::$polygon[1878]
->isInside($lat, $lng)) {
return 28;
}
else {
return 55;
}
}
}
}
}
else {
return 55;
}
}
else {
if ($lng < 46.103514) {
if ($lat < 39.011363) {
if ($lng < 44.651284) {
if (static::$polygon[1879]
->isInside($lat, $lng)) {
return 55;
}
else {
return 205;
}
}
else {
if (static::$polygon[1880]
->isInside($lat, $lng)) {
return 51;
}
if (static::$polygon[1881]
->isInside($lat, $lng)) {
return 205;
}
else {
return 55;
}
}
}
else {
if ($lng < 44.651284) {
if (static::$polygon[1882]
->isInside($lat, $lng)) {
return 48;
}
if (static::$polygon[1883]
->isInside($lat, $lng)) {
return 55;
}
else {
return 205;
}
}
else {
if ($lat < 39.841974) {
if (static::$polygon[1884]
->isInside($lat, $lng)) {
return 48;
}
if (static::$polygon[1885]
->isInside($lat, $lng)) {
return 55;
}
if (static::$polygon[1886]
->isInside($lat, $lng)) {
return 205;
}
else {
return 51;
}
}
else {
if (static::$polygon[1887]
->isInside($lat, $lng)) {
return 51;
}
if (static::$polygon[1888]
->isInside($lat, $lng)) {
return 51;
}
else {
return 48;
}
}
}
}
}
else {
if ($lat < 39.011363) {
if (static::$polygon[1889]
->isInside($lat, $lng)) {
return 48;
}
if (static::$polygon[1890]
->isInside($lat, $lng)) {
return 51;
}
if (static::$polygon[1891]
->isInside($lat, $lng)) {
return 51;
}
if (static::$polygon[1892]
->isInside($lat, $lng)) {
return 51;
}
else {
return 55;
}
}
else {
if ($lng < 47.555743) {
if (static::$polygon[1893]
->isInside($lat, $lng)) {
return 48;
}
if (static::$polygon[1894]
->isInside($lat, $lng)) {
return 55;
}
else {
return 51;
}
}
else {
if (static::$polygon[1895]
->isInside($lat, $lng)) {
return 55;
}
else {
return 51;
}
}
}
}
}
}
else {
if ($lat < 37.722569) {
return 55;
}
else {
return 51;
}
}
}
}
else {
if ($lng < 50.639946) {
if ($lat < 27.723528) {
return 163;
}
else {
if ($lat < 37.547089) {
return 55;
}
else {
return 51;
}
}
}
else {
if ($lng < 51.467556) {
return 55;
}
else {
if ($lng < 53.649776) {
if ($lat < 36.882539) {
return 55;
}
else {
return 76;
}
}
else {
if ($lng < 56.605778) {
if ($lat < 36.947498) {
return 55;
}
else {
if (static::$polygon[1896]
->isInside($lat, $lng)) {
return 55;
}
else {
return 76;
}
}
}
else {
if ($lat < 31.834249) {
if ($lng < 68.168892) {
if ($lng < 62.387335) {
if (static::$polygon[1897]
->isInside($lat, $lng)) {
return 210;
}
if (static::$polygon[1898]
->isInside($lat, $lng)) {
return 366;
}
else {
return 55;
}
}
else {
if ($lng < 65.278113) {
if (static::$polygon[1899]
->isInside($lat, $lng)) {
return 55;
}
if (static::$polygon[1900]
->isInside($lat, $lng)) {
return 366;
}
else {
return 210;
}
}
else {
if (static::$polygon[1901]
->isInside($lat, $lng)) {
return 366;
}
else {
return 210;
}
}
}
}
else {
if (static::$polygon[1902]
->isInside($lat, $lng)) {
return 366;
}
else {
return 210;
}
}
}
else {
if ($lng < 61.278584) {
if ($lat < 36.253417) {
if ($lng < 58.942181) {
return 55;
}
else {
if ($lat < 34.043833) {
if (static::$polygon[1903]
->isInside($lat, $lng)) {
return 366;
}
else {
return 55;
}
}
else {
if (static::$polygon[1904]
->isInside($lat, $lng)) {
return 76;
}
if (static::$polygon[1905]
->isInside($lat, $lng)) {
return 366;
}
else {
return 55;
}
}
}
}
else {
if ($lng < 58.942181) {
if (static::$polygon[1906]
->isInside($lat, $lng)) {
return 76;
}
else {
return 55;
}
}
else {
if (static::$polygon[1907]
->isInside($lat, $lng)) {
return 55;
}
else {
return 76;
}
}
}
}
else {
if ($lat < 36.253417) {
if (static::$polygon[1908]
->isInside($lat, $lng)) {
return 76;
}
else {
return 366;
}
}
else {
if ($lng < 64.921762) {
if (static::$polygon[1909]
->isInside($lat, $lng)) {
return 167;
}
if (static::$polygon[1910]
->isInside($lat, $lng)) {
return 366;
}
else {
return 76;
}
}
else {
if ($lat < 38.463001) {
if ($lng < 66.743352) {
if (static::$polygon[1911]
->isInside($lat, $lng)) {
return 167;
}
if (static::$polygon[1912]
->isInside($lat, $lng)) {
return 366;
}
else {
return 76;
}
}
else {
if ($lat < 37.358209) {
if (static::$polygon[1913]
->isInside($lat, $lng)) {
return 167;
}
if (static::$polygon[1914]
->isInside($lat, $lng)) {
return 167;
}
if (static::$polygon[1915]
->isInside($lat, $lng)) {
return 208;
}
else {
return 366;
}
}
else {
if (static::$polygon[1916]
->isInside($lat, $lng)) {
return 208;
}
if (static::$polygon[1917]
->isInside($lat, $lng)) {
return 366;
}
else {
return 167;
}
}
}
}
else {
if ($lng < 66.743352) {
if (static::$polygon[1918]
->isInside($lat, $lng)) {
return 76;
}
if (static::$polygon[1919]
->isInside($lat, $lng)) {
return 246;
}
else {
return 167;
}
}
else {
if ($lat < 39.567793) {
if (static::$polygon[1920]
->isInside($lat, $lng)) {
return 167;
}
if (static::$polygon[1921]
->isInside($lat, $lng)) {
return 246;
}
if (static::$polygon[1922]
->isInside($lat, $lng)) {
return 246;
}
else {
return 208;
}
}
else {
if (static::$polygon[1923]
->isInside($lat, $lng)) {
return 167;
}
if (static::$polygon[1924]
->isInside($lat, $lng)) {
return 208;
}
if (static::$polygon[1925]
->isInside($lat, $lng)) {
return 208;
}
if (static::$polygon[1926]
->isInside($lat, $lng)) {
return 208;
}
else {
return 246;
}
}
}
}
}
}
}
}
}
}
}
}
}
}