private static function GeoTimezone::tryGetTzIndex34 in Geo Time Zone 8.2
Same name and namespace in other branches
- 8.3 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex34()
- 8 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex34()
- 6.2 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex34()
- 6 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex34()
- 7.2 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex34()
- 7 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex34()
1 call to GeoTimezone::tryGetTzIndex34()
File
- src/
GeoTimezone.php, line 32921 - Contains \Drupal\geotimezone\GeoTimezone.
Class
- GeoTimezone
- Determine the time zone based on coordinates.
Namespace
Drupal\geotimezoneCode
private static function tryGetTzIndex34($lat, $lng) {
if ($lng < 77.840919) {
if ($lat < 23.877695) {
return 371;
}
else {
if ($lat < 31.180556) {
if ($lng < 73.20292999999999) {
if ($lat < 27.529126) {
if ($lng < 70.88393600000001) {
if ($lat < 25.70341) {
if (static::$polygon[1927]
->isInside($lat, $lng)) {
return 210;
}
else {
return 371;
}
}
else {
if (static::$polygon[1928]
->isInside($lat, $lng)) {
return 371;
}
else {
return 210;
}
}
}
else {
if (static::$polygon[1929]
->isInside($lat, $lng)) {
return 210;
}
if (static::$polygon[1930]
->isInside($lat, $lng)) {
return 210;
}
else {
return 371;
}
}
}
else {
if (static::$polygon[1931]
->isInside($lat, $lng)) {
return 371;
}
else {
return 210;
}
}
}
else {
if (static::$polygon[1932]
->isInside($lat, $lng)) {
return 210;
}
else {
return 371;
}
}
}
else {
if ($lng < 73.20292999999999) {
if ($lat < 34.831987) {
if ($lng < 70.88393600000001) {
if ($lat < 33.006272) {
if (static::$polygon[1933]
->isInside($lat, $lng)) {
return 366;
}
if (static::$polygon[1934]
->isInside($lat, $lng)) {
return 366;
}
else {
return 210;
}
}
else {
if (static::$polygon[1935]
->isInside($lat, $lng)) {
return 210;
}
else {
return 366;
}
}
}
else {
if (static::$polygon[1936]
->isInside($lat, $lng)) {
return 366;
}
else {
return 210;
}
}
}
else {
if ($lng < 70.88393600000001) {
if ($lat < 36.657702) {
return 366;
}
else {
if ($lng < 69.724439) {
if (static::$polygon[1937]
->isInside($lat, $lng)) {
return 366;
}
else {
return 208;
}
}
else {
if (static::$polygon[1938]
->isInside($lat, $lng)) {
return 366;
}
else {
return 208;
}
}
}
}
else {
if ($lat < 36.657702) {
if (static::$polygon[1939]
->isInside($lat, $lng)) {
return 366;
}
else {
return 210;
}
}
else {
if ($lng < 72.04343299999999) {
if (static::$polygon[1940]
->isInside($lat, $lng)) {
return 366;
}
else {
return 208;
}
}
else {
if (static::$polygon[1941]
->isInside($lat, $lng)) {
return 208;
}
if (static::$polygon[1942]
->isInside($lat, $lng)) {
return 210;
}
else {
return 366;
}
}
}
}
}
}
else {
if ($lat < 34.831987) {
if ($lng < 75.521925) {
if ($lat < 33.006272) {
if (static::$polygon[1943]
->isInside($lat, $lng)) {
return 371;
}
else {
return 210;
}
}
else {
if (static::$polygon[1944]
->isInside($lat, $lng)) {
return 371;
}
else {
return 210;
}
}
}
else {
if (static::$polygon[1945]
->isInside($lat, $lng)) {
return 210;
}
else {
return 371;
}
}
}
else {
if ($lng < 75.521925) {
if ($lat < 36.657702) {
return 210;
}
else {
if ($lng < 74.36242799999999) {
if (static::$polygon[1946]
->isInside($lat, $lng)) {
return 208;
}
if (static::$polygon[1947]
->isInside($lat, $lng)) {
return 210;
}
else {
return 366;
}
}
else {
if ($lat < 37.57056) {
if ($lng < 74.942176) {
if ($lat < 37.114131) {
if (static::$polygon[1948]
->isInside($lat, $lng)) {
return 4;
}
if (static::$polygon[1949]
->isInside($lat, $lng)) {
return 366;
}
else {
return 210;
}
}
else {
if (static::$polygon[1950]
->isInside($lat, $lng)) {
return 208;
}
if (static::$polygon[1951]
->isInside($lat, $lng)) {
return 366;
}
else {
return 4;
}
}
}
else {
if (static::$polygon[1952]
->isInside($lat, $lng)) {
return 208;
}
if (static::$polygon[1953]
->isInside($lat, $lng)) {
return 210;
}
else {
return 4;
}
}
}
else {
if (static::$polygon[1954]
->isInside($lat, $lng)) {
return 208;
}
else {
return 4;
}
}
}
}
}
else {
if ($lat < 36.657702) {
if (static::$polygon[1955]
->isInside($lat, $lng)) {
return 4;
}
if (static::$polygon[1956]
->isInside($lat, $lng)) {
return 371;
}
else {
return 210;
}
}
else {
if (static::$polygon[1957]
->isInside($lat, $lng)) {
return 210;
}
else {
return 4;
}
}
}
}
}
}
}
}
else {
if ($lat < 25.213472) {
if ($lat < 23.874722) {
if ($lng < 88.62041499999999) {
if (static::$polygon[1958]
->isInside($lat, $lng)) {
return 150;
}
else {
return 371;
}
}
else {
if (static::$polygon[1959]
->isInside($lat, $lng)) {
return 371;
}
else {
return 150;
}
}
}
else {
if (static::$polygon[1960]
->isInside($lat, $lng)) {
return 150;
}
else {
return 371;
}
}
}
else {
if ($lat < 31.848445) {
if ($lng < 83.240298) {
if ($lat < 28.530959) {
if (static::$polygon[1961]
->isInside($lat, $lng)) {
return 268;
}
else {
return 371;
}
}
else {
if ($lng < 80.540609) {
if ($lat < 30.189702) {
if (static::$polygon[1962]
->isInside($lat, $lng)) {
return 268;
}
else {
return 371;
}
}
else {
if (static::$polygon[1963]
->isInside($lat, $lng)) {
return 4;
}
else {
return 371;
}
}
}
else {
if ($lat < 30.189702) {
if (static::$polygon[1964]
->isInside($lat, $lng)) {
return 4;
}
if (static::$polygon[1965]
->isInside($lat, $lng)) {
return 371;
}
if (static::$polygon[1966]
->isInside($lat, $lng)) {
return 371;
}
if (static::$polygon[1967]
->isInside($lat, $lng)) {
return 371;
}
if (static::$polygon[1968]
->isInside($lat, $lng)) {
return 406;
}
else {
return 268;
}
}
else {
if ($lng < 81.89045400000001) {
if (static::$polygon[1969]
->isInside($lat, $lng)) {
return 268;
}
if (static::$polygon[1970]
->isInside($lat, $lng)) {
return 268;
}
if (static::$polygon[1971]
->isInside($lat, $lng)) {
return 268;
}
if (static::$polygon[1972]
->isInside($lat, $lng)) {
return 371;
}
else {
return 4;
}
}
else {
if ($lat < 31.019073) {
if (static::$polygon[1973]
->isInside($lat, $lng)) {
return 4;
}
if (static::$polygon[1974]
->isInside($lat, $lng)) {
return 268;
}
else {
return 406;
}
}
else {
if (static::$polygon[1975]
->isInside($lat, $lng)) {
return 406;
}
if (static::$polygon[1976]
->isInside($lat, $lng)) {
return 406;
}
else {
return 4;
}
}
}
}
}
}
}
else {
if ($lat < 28.530959) {
if ($lng < 85.939988) {
if ($lat < 26.872216) {
if (static::$polygon[1977]
->isInside($lat, $lng)) {
return 371;
}
else {
return 268;
}
}
else {
if ($lng < 84.590143) {
if (static::$polygon[1978]
->isInside($lat, $lng)) {
return 371;
}
else {
return 268;
}
}
else {
if (static::$polygon[1979]
->isInside($lat, $lng)) {
return 371;
}
if (static::$polygon[1980]
->isInside($lat, $lng)) {
return 371;
}
if (static::$polygon[1981]
->isInside($lat, $lng)) {
return 371;
}
if (static::$polygon[1982]
->isInside($lat, $lng)) {
return 406;
}
else {
return 268;
}
}
}
}
else {
if ($lat < 26.872216) {
if ($lng < 87.289832) {
if (static::$polygon[1983]
->isInside($lat, $lng)) {
return 371;
}
else {
return 268;
}
}
else {
if ($lat < 26.042844) {
if (static::$polygon[1984]
->isInside($lat, $lng)) {
return 150;
}
else {
return 371;
}
}
else {
if (static::$polygon[1985]
->isInside($lat, $lng)) {
return 150;
}
if (static::$polygon[1986]
->isInside($lat, $lng)) {
return 268;
}
else {
return 371;
}
}
}
}
else {
if ($lng < 87.289832) {
if (static::$polygon[1987]
->isInside($lat, $lng)) {
return 268;
}
else {
return 406;
}
}
else {
if ($lat < 27.701587) {
if (static::$polygon[1988]
->isInside($lat, $lng)) {
return 371;
}
else {
return 268;
}
}
else {
if (static::$polygon[1989]
->isInside($lat, $lng)) {
return 268;
}
if (static::$polygon[1990]
->isInside($lat, $lng)) {
return 371;
}
else {
return 406;
}
}
}
}
}
}
else {
if (static::$polygon[1991]
->isInside($lat, $lng)) {
return 4;
}
if (static::$polygon[1992]
->isInside($lat, $lng)) {
return 268;
}
else {
return 406;
}
}
}
}
else {
if ($lng < 83.240298) {
if ($lat < 35.165931) {
if ($lng < 80.540609) {
if ($lat < 33.507188) {
if (static::$polygon[1993]
->isInside($lat, $lng)) {
return 371;
}
else {
return 4;
}
}
else {
if (static::$polygon[1994]
->isInside($lat, $lng)) {
return 371;
}
else {
return 4;
}
}
}
else {
if (static::$polygon[1995]
->isInside($lat, $lng)) {
return 406;
}
if (static::$polygon[1996]
->isInside($lat, $lng)) {
return 406;
}
else {
return 4;
}
}
}
else {
if (static::$polygon[1997]
->isInside($lat, $lng)) {
return 371;
}
if (static::$polygon[1998]
->isInside($lat, $lng)) {
return 406;
}
else {
return 4;
}
}
}
else {
return 406;
}
}
}
}
}