private static function GeoTimezone::tryGetTzIndex24 in Geo Time Zone 7
Same name and namespace in other branches
- 8.3 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex24()
- 8 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex24()
- 8.2 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex24()
- 6.2 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex24()
- 6 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex24()
- 7.2 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex24()
1 call to GeoTimezone::tryGetTzIndex24()
File
- src/
GeoTimezone.php, line 22911 - Contains \Drupal\geotimezone\GeoTimezoneMap.
Class
- GeoTimezone
- Determine the timezone based on coordinates.
Namespace
Drupal\geotimezoneCode
private static function tryGetTzIndex24($lat, $lng) {
if ($lat < 0.258941) {
if ($lat < -8.129065000000001) {
if ($lng < 35.916821) {
if ($lng < 33.705704) {
if ($lat < -15.608835) {
return static::tryGetTzIndex20($lat, $lng);
}
else {
if ($lng < 13.264205) {
return 299;
}
else {
if ($lng < 24.082119) {
if ($lat < -11.397731) {
if (static::$polygon[1320]
->isInside($lat, $lng)) {
return 267;
}
else {
return 299;
}
}
else {
if ($lng < 18.673162) {
return 299;
}
else {
if ($lng < 21.37764) {
return 299;
}
else {
if ($lat < -9.763398) {
if (static::$polygon[1321]
->isInside($lat, $lng)) {
return 267;
}
if (static::$polygon[1322]
->isInside($lat, $lng)) {
return 352;
}
else {
return 299;
}
}
else {
if (static::$polygon[1323]
->isInside($lat, $lng)) {
return 352;
}
else {
return 299;
}
}
}
}
}
}
else {
if ($lat < -13.998108) {
if (static::$polygon[1324]
->isInside($lat, $lng)) {
return 206;
}
if (static::$polygon[1325]
->isInside($lat, $lng)) {
return 206;
}
if (static::$polygon[1326]
->isInside($lat, $lng)) {
return 267;
}
else {
return 364;
}
}
else {
if ($lng < 30.774246) {
if ($lat < -8.224360000000001) {
if ($lng < 27.428183) {
if ($lat < -11.111234) {
if ($lng < 25.755151) {
if (static::$polygon[1327]
->isInside($lat, $lng)) {
return 352;
}
else {
return 267;
}
}
else {
if (static::$polygon[1328]
->isInside($lat, $lng)) {
return 352;
}
else {
return 267;
}
}
}
else {
if (static::$polygon[1329]
->isInside($lat, $lng)) {
return 267;
}
else {
return 352;
}
}
}
else {
if ($lat < -11.111234) {
if ($lng < 29.101214) {
if ($lat < -12.554671) {
if (static::$polygon[1330]
->isInside($lat, $lng)) {
return 352;
}
else {
return 267;
}
}
else {
if (static::$polygon[1331]
->isInside($lat, $lng)) {
return 352;
}
else {
return 267;
}
}
}
else {
if (static::$polygon[1332]
->isInside($lat, $lng)) {
return 352;
}
else {
return 267;
}
}
}
else {
if (static::$polygon[1333]
->isInside($lat, $lng)) {
return 267;
}
else {
return 352;
}
}
}
}
else {
if (static::$polygon[1334]
->isInside($lat, $lng)) {
return 17;
}
else {
return 352;
}
}
}
else {
if ($lat < -11.063586) {
if ($lat < -12.530847) {
if (static::$polygon[1335]
->isInside($lat, $lng)) {
return 267;
}
if (static::$polygon[1336]
->isInside($lat, $lng)) {
return 267;
}
if (static::$polygon[1337]
->isInside($lat, $lng)) {
return 267;
}
else {
return 206;
}
}
else {
if (static::$polygon[1338]
->isInside($lat, $lng)) {
return 267;
}
else {
return 206;
}
}
}
else {
if ($lat < -9.596325) {
if (static::$polygon[1339]
->isInside($lat, $lng)) {
return 17;
}
if (static::$polygon[1340]
->isInside($lat, $lng)) {
return 17;
}
if (static::$polygon[1341]
->isInside($lat, $lng)) {
return 267;
}
else {
return 206;
}
}
else {
if ($lng < 32.239975) {
if (static::$polygon[1342]
->isInside($lat, $lng)) {
return 17;
}
else {
return 267;
}
}
else {
if (static::$polygon[1343]
->isInside($lat, $lng)) {
return 206;
}
if (static::$polygon[1344]
->isInside($lat, $lng)) {
return 206;
}
if (static::$polygon[1345]
->isInside($lat, $lng)) {
return 267;
}
else {
return 17;
}
}
}
}
}
}
}
}
}
}
else {
if ($lat < -19.090635) {
return 364;
}
else {
if ($lat < -13.60985) {
if ($lat < -16.350243) {
if (static::$polygon[1346]
->isInside($lat, $lng)) {
return 206;
}
else {
return 364;
}
}
else {
if ($lat < -14.980046) {
if (static::$polygon[1347]
->isInside($lat, $lng)) {
return 206;
}
else {
return 364;
}
}
else {
if (static::$polygon[1348]
->isInside($lat, $lng)) {
return 206;
}
if (static::$polygon[1349]
->isInside($lat, $lng)) {
return 206;
}
else {
return 364;
}
}
}
}
else {
if ($lat < -10.869457) {
if (static::$polygon[1350]
->isInside($lat, $lng)) {
return 206;
}
if (static::$polygon[1351]
->isInside($lat, $lng)) {
return 364;
}
else {
return 17;
}
}
else {
if (static::$polygon[1352]
->isInside($lat, $lng)) {
return 206;
}
else {
return 17;
}
}
}
}
}
}
else {
if ($lng < 40.443222) {
if ($lat < -16.279331) {
if ($lat < -46.609653) {
return 169;
}
else {
return 364;
}
}
else {
if ($lat < -10.481017) {
if ($lat < -12.512221) {
return 364;
}
else {
if (static::$polygon[1353]
->isInside($lat, $lng)) {
return 17;
}
else {
return 364;
}
}
}
else {
return 17;
}
}
}
else {
if ($lng < 40.842995) {
return 364;
}
else {
return 101;
}
}
}
}
else {
if ($lng < 39.579086) {
return static::tryGetTzIndex21($lat, $lng);
}
else {
if ($lat < -4.865081) {
return 17;
}
else {
if ($lat < -1.742535) {
return 122;
}
else {
if ($lng < 41.567944) {
if (static::$polygon[1354]
->isInside($lat, $lng)) {
return 250;
}
else {
return 122;
}
}
else {
return 250;
}
}
}
}
}
}
else {
if ($lng < 40.46703) {
return static::tryGetTzIndex23($lat, $lng);
}
else {
if ($lat < 15.249888) {
if ($lat < 13.170722) {
if ($lat < 12.845361) {
if ($lat < 4.667434) {
if (static::$polygon[1355]
->isInside($lat, $lng)) {
return 122;
}
if (static::$polygon[1356]
->isInside($lat, $lng)) {
return 250;
}
else {
return 350;
}
}
else {
if ($lat < 11.730194) {
if (static::$polygon[1357]
->isInside($lat, $lng)) {
return 250;
}
if (static::$polygon[1358]
->isInside($lat, $lng)) {
return 350;
}
else {
return 311;
}
}
else {
if (static::$polygon[1359]
->isInside($lat, $lng)) {
return 311;
}
if (static::$polygon[1360]
->isInside($lat, $lng)) {
return 350;
}
else {
return 149;
}
}
}
}
else {
if ($lng < 42.010485) {
if (static::$polygon[1361]
->isInside($lat, $lng)) {
return 149;
}
else {
return 350;
}
}
else {
return 149;
}
}
}
else {
if ($lng < 42.562199) {
if ($lng < 41.809405) {
if ($lat < 14.277273) {
if (static::$polygon[1362]
->isInside($lat, $lng)) {
return 350;
}
else {
return 149;
}
}
else {
return 149;
}
}
else {
if ($lat < 13.918802) {
return 149;
}
else {
return 215;
}
}
}
else {
return 215;
}
}
}
else {
if ($lng < 41.297417) {
return 149;
}
else {
if ($lat < 15.769584) {
return 215;
}
else {
if ($lng < 42.506054) {
return 163;
}
else {
return 215;
}
}
}
}
}
}
}