private static function GeoTimezone::tryGetTzIndex41 in Geo Time Zone 6.2
Same name and namespace in other branches
- 8.3 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex41()
- 8 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex41()
- 8.2 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex41()
- 6 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex41()
- 7.2 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex41()
- 7 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex41()
1 call to GeoTimezone::tryGetTzIndex41()
File
- src/
GeoTimezone.php, line 29638 - Contains \Drupal\geotimezone\GeoTimezone.
Class
- GeoTimezone
- Determine the time zone based on coordinates.
Namespace
Drupal\geotimezoneCode
private static function tryGetTzIndex41($lat, $lng) {
if ($lat < 66.269081) {
if ($lng < 68.564941) {
return static::tryGetTzIndex39($lat, $lng);
}
else {
if ($lat < 22.532944) {
if ($lng < 88.974408) {
return 371;
}
else {
if ($lng < 90.70153000000001) {
if ($lng < 89.29528000000001) {
if ($lng < 89.10691799999999) {
if (static::$polygon[2310]
->isInside($lat, $lng)) {
return 150;
}
if (static::$polygon[2311]
->isInside($lat, $lng)) {
return 150;
}
if (static::$polygon[2312]
->isInside($lat, $lng)) {
return 150;
}
else {
return 371;
}
}
else {
return 150;
}
}
else {
return 150;
}
}
else {
if ($lng < 92.143913) {
return 150;
}
else {
if ($lng < 93.198753) {
if ($lng < 92.359863) {
if ($lat < 20.724388) {
return 150;
}
else {
if ($lat < 20.864358) {
if (static::$polygon[2313]
->isInside($lat, $lng)) {
return 150;
}
else {
return 40;
}
}
else {
if (static::$polygon[2314]
->isInside($lat, $lng)) {
return 150;
}
else {
return 40;
}
}
}
}
else {
if ($lat < 20.758194) {
return 40;
}
else {
if (static::$polygon[2315]
->isInside($lat, $lng)) {
return 150;
}
if (static::$polygon[2316]
->isInside($lat, $lng)) {
return 371;
}
else {
return 40;
}
}
}
}
else {
if ($lng < 102.310904) {
if ($lng < 97.754829) {
return 40;
}
else {
if ($lng < 100.032866) {
if (static::$polygon[2317]
->isInside($lat, $lng)) {
return 403;
}
else {
return 40;
}
}
else {
if ($lng < 101.171885) {
if (static::$polygon[2318]
->isInside($lat, $lng)) {
return 265;
}
if (static::$polygon[2319]
->isInside($lat, $lng)) {
return 403;
}
else {
return 40;
}
}
else {
if ($lat < 21.589333) {
if (static::$polygon[2320]
->isInside($lat, $lng)) {
return 403;
}
else {
return 265;
}
}
else {
if (static::$polygon[2321]
->isInside($lat, $lng)) {
return 24;
}
if (static::$polygon[2322]
->isInside($lat, $lng)) {
return 40;
}
if (static::$polygon[2323]
->isInside($lat, $lng)) {
return 403;
}
else {
return 265;
}
}
}
}
}
}
else {
if ($lat < 22.204487) {
if ($lng < 103.707771) {
if (static::$polygon[2324]
->isInside($lat, $lng)) {
return 24;
}
else {
return 265;
}
}
else {
if (static::$polygon[2325]
->isInside($lat, $lng)) {
return 265;
}
else {
return 24;
}
}
}
else {
if ($lng < 103.136834) {
if (static::$polygon[2326]
->isInside($lat, $lng)) {
return 403;
}
else {
return 24;
}
}
else {
if (static::$polygon[2327]
->isInside($lat, $lng)) {
return 403;
}
else {
return 24;
}
}
}
}
}
}
}
}
}
else {
if ($lat < 23.438555) {
if ($lng < 90.524109) {
if ($lng < 88.99747499999999) {
if ($lng < 70.47822600000001) {
return 371;
}
else {
if ($lat < 23.199751) {
if (static::$polygon[2328]
->isInside($lat, $lng)) {
return 150;
}
else {
return 371;
}
}
else {
if (static::$polygon[2329]
->isInside($lat, $lng)) {
return 150;
}
else {
return 371;
}
}
}
}
else {
return 150;
}
}
else {
if ($lng < 91.17233299999999) {
return 150;
}
else {
if ($lng < 91.94045300000001) {
if ($lat < 22.75625) {
return 150;
}
else {
if (static::$polygon[2330]
->isInside($lat, $lng)) {
return 371;
}
else {
return 150;
}
}
}
else {
if ($lng < 99.56353) {
if ($lng < 93.40252700000001) {
if ($lng < 92.529763) {
if (static::$polygon[2331]
->isInside($lat, $lng)) {
return 371;
}
else {
return 150;
}
}
else {
if ($lat < 23.386499) {
if (static::$polygon[2332]
->isInside($lat, $lng)) {
return 40;
}
else {
return 371;
}
}
else {
if (static::$polygon[2333]
->isInside($lat, $lng)) {
return 40;
}
else {
return 371;
}
}
}
}
else {
if (static::$polygon[2334]
->isInside($lat, $lng)) {
return 403;
}
if (static::$polygon[2335]
->isInside($lat, $lng)) {
return 403;
}
else {
return 40;
}
}
}
else {
if ($lng < 102.90794) {
if (static::$polygon[2336]
->isInside($lat, $lng)) {
return 24;
}
else {
return 403;
}
}
else {
if ($lng < 103.916794) {
if (static::$polygon[2337]
->isInside($lat, $lng)) {
return 24;
}
else {
return 403;
}
}
else {
if (static::$polygon[2338]
->isInside($lat, $lng)) {
return 24;
}
else {
return 403;
}
}
}
}
}
}
}
}
else {
return static::tryGetTzIndex38($lat, $lng);
}
}
}
}
else {
if ($lng < 83.435236) {
if ($lng < 63.22332) {
return 183;
}
else {
if ($lng < 79.95311) {
if ($lng < 71.75855300000001) {
if ($lng < 69.18486) {
if ($lat < 69.66739200000001) {
if ($lng < 66.21054100000001) {
if ($lat < 66.326385) {
if (static::$polygon[2339]
->isInside($lat, $lng)) {
return 183;
}
else {
return 178;
}
}
else {
if ($lat < 67.696091) {
if (static::$polygon[2340]
->isInside($lat, $lng)) {
return 183;
}
else {
return 178;
}
}
else {
if (static::$polygon[2341]
->isInside($lat, $lng)) {
return 183;
}
else {
return 178;
}
}
}
}
else {
return 178;
}
}
else {
if ($lat < 72.784257) {
return 178;
}
else {
return 183;
}
}
}
else {
return 178;
}
}
else {
if ($lat < 69.003365) {
return 178;
}
else {
if ($lng < 76.088142) {
return 178;
}
else {
if ($lat < 72.60283699999999) {
if ($lng < 78.340698) {
return 178;
}
else {
if ($lat < 71.623577) {
if ($lat < 70.303423) {
if (static::$polygon[2342]
->isInside($lat, $lng)) {
return 289;
}
else {
return 178;
}
}
else {
if (static::$polygon[2343]
->isInside($lat, $lng)) {
return 289;
}
else {
return 178;
}
}
}
else {
if (static::$polygon[2344]
->isInside($lat, $lng)) {
return 289;
}
else {
return 178;
}
}
}
}
else {
if ($lng < 76.746025) {
if ($lat < 73.520027) {
return 178;
}
else {
return 289;
}
}
else {
return 289;
}
}
}
}
}
}
else {
if ($lat < 71.978767) {
if ($lat < 70.489197) {
if ($lng < 82.68377700000001) {
if ($lat < 70.09844200000001) {
if ($lat < 69.447754) {
if ($lat < 68.63005699999999) {
if ($lat < 68.286874) {
if (static::$polygon[2345]
->isInside($lat, $lng)) {
return 289;
}
else {
return 178;
}
}
else {
if (static::$polygon[2346]
->isInside($lat, $lng)) {
return 289;
}
else {
return 178;
}
}
}
else {
if ($lng < 81.683594) {
if (static::$polygon[2347]
->isInside($lat, $lng)) {
return 289;
}
else {
return 178;
}
}
else {
if (static::$polygon[2348]
->isInside($lat, $lng)) {
return 289;
}
else {
return 178;
}
}
}
}
else {
return 289;
}
}
else {
if ($lng < 80.79858400000001) {
if (static::$polygon[2349]
->isInside($lat, $lng)) {
return 289;
}
if (static::$polygon[2350]
->isInside($lat, $lng)) {
return 289;
}
else {
return 178;
}
}
else {
return 289;
}
}
}
else {
if ($lat < 68.798813) {
if ($lat < 68.466825) {
if ($lat < 67.02618099999999) {
if (static::$polygon[2351]
->isInside($lat, $lng)) {
return 289;
}
else {
return 178;
}
}
else {
if (static::$polygon[2352]
->isInside($lat, $lng)) {
return 178;
}
else {
return 289;
}
}
}
else {
if (static::$polygon[2353]
->isInside($lat, $lng)) {
return 178;
}
else {
return 289;
}
}
}
else {
return 289;
}
}
}
else {
if ($lng < 80.75936900000001) {
if ($lat < 70.654465) {
if (static::$polygon[2354]
->isInside($lat, $lng)) {
return 289;
}
else {
return 178;
}
}
else {
if ($lat < 71.13395800000001) {
if (static::$polygon[2355]
->isInside($lat, $lng)) {
return 289;
}
else {
return 178;
}
}
else {
if (static::$polygon[2356]
->isInside($lat, $lng)) {
return 178;
}
else {
return 289;
}
}
}
}
else {
return 289;
}
}
}
else {
return 289;
}
}
}
}
else {
return 289;
}
}
}