private static function GeoTimezone::tryGetTzIndex22 in Geo Time Zone 7.2
Same name and namespace in other branches
- 8.3 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex22()
- 8 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex22()
- 8.2 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex22()
- 6.2 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex22()
- 6 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex22()
- 7 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex22()
1 call to GeoTimezone::tryGetTzIndex22()
File
- src/
GeoTimezone.php, line 24778 - Contains \Drupal\geotimezone\GeoTimezone.
Class
- GeoTimezone
- Determine the time zone based on coordinates.
Namespace
Drupal\geotimezoneCode
private static function tryGetTzIndex22($lat, $lng) {
if ($lng < 31.305912) {
if ($lat < 5.386098) {
if ($lng < 23.651386) {
if ($lat < 2.822519) {
if (static::$polygon[1195]
->isInside($lat, $lng)) {
return 331;
}
else {
return 352;
}
}
else {
if ($lng < 21.150613) {
if (static::$polygon[1196]
->isInside($lat, $lng)) {
return 331;
}
else {
return 214;
}
}
else {
if ($lat < 4.104309) {
if (static::$polygon[1197]
->isInside($lat, $lng)) {
return 331;
}
else {
return 352;
}
}
else {
if (static::$polygon[1198]
->isInside($lat, $lng)) {
return 331;
}
if (static::$polygon[1199]
->isInside($lat, $lng)) {
return 352;
}
else {
return 214;
}
}
}
}
}
else {
if ($lng < 27.478649) {
if ($lat < 2.822519) {
return 352;
}
else {
if ($lng < 25.565018) {
if ($lat < 4.104309) {
return 352;
}
else {
if ($lng < 24.608202) {
if (static::$polygon[1200]
->isInside($lat, $lng)) {
return 352;
}
else {
return 214;
}
}
else {
if (static::$polygon[1201]
->isInside($lat, $lng)) {
return 352;
}
else {
return 214;
}
}
}
}
else {
if ($lat < 4.104309) {
return 352;
}
else {
if ($lng < 26.521833) {
if (static::$polygon[1202]
->isInside($lat, $lng)) {
return 214;
}
else {
return 352;
}
}
else {
if (static::$polygon[1203]
->isInside($lat, $lng)) {
return 352;
}
if (static::$polygon[1204]
->isInside($lat, $lng)) {
return 395;
}
else {
return 214;
}
}
}
}
}
}
else {
if ($lat < 2.822519) {
if (static::$polygon[1205]
->isInside($lat, $lng)) {
return 352;
}
else {
return 179;
}
}
else {
if ($lng < 29.392281) {
if (static::$polygon[1206]
->isInside($lat, $lng)) {
return 352;
}
else {
return 395;
}
}
else {
if ($lat < 4.104309) {
if (static::$polygon[1207]
->isInside($lat, $lng)) {
return 179;
}
if (static::$polygon[1208]
->isInside($lat, $lng)) {
return 395;
}
else {
return 352;
}
}
else {
if (static::$polygon[1209]
->isInside($lat, $lng)) {
return 352;
}
else {
return 395;
}
}
}
}
}
}
}
else {
if ($lng < 24.977876) {
if ($lat < 10.86916) {
if ($lng < 21.813858) {
if ($lat < 8.127629000000001) {
return 214;
}
else {
if ($lng < 20.231848) {
if (static::$polygon[1210]
->isInside($lat, $lng)) {
return 214;
}
else {
return 202;
}
}
else {
if ($lat < 9.498395) {
if (static::$polygon[1211]
->isInside($lat, $lng)) {
return 202;
}
else {
return 214;
}
}
else {
if (static::$polygon[1212]
->isInside($lat, $lng)) {
return 214;
}
else {
return 202;
}
}
}
}
}
else {
if ($lat < 8.127629000000001) {
if (static::$polygon[1213]
->isInside($lat, $lng)) {
return 395;
}
else {
return 214;
}
}
else {
if ($lng < 23.395867) {
if (static::$polygon[1214]
->isInside($lat, $lng)) {
return 202;
}
if (static::$polygon[1215]
->isInside($lat, $lng)) {
return 202;
}
if (static::$polygon[1216]
->isInside($lat, $lng)) {
return 202;
}
if (static::$polygon[1217]
->isInside($lat, $lng)) {
return 322;
}
else {
return 214;
}
}
else {
if ($lat < 9.498395) {
if ($lng < 24.186871) {
if (static::$polygon[1218]
->isInside($lat, $lng)) {
return 322;
}
if (static::$polygon[1219]
->isInside($lat, $lng)) {
return 395;
}
if (static::$polygon[1220]
->isInside($lat, $lng)) {
return 395;
}
else {
return 214;
}
}
else {
if (static::$polygon[1221]
->isInside($lat, $lng)) {
return 214;
}
if (static::$polygon[1222]
->isInside($lat, $lng)) {
return 214;
}
if (static::$polygon[1223]
->isInside($lat, $lng)) {
return 322;
}
else {
return 395;
}
}
}
else {
if (static::$polygon[1224]
->isInside($lat, $lng)) {
return 214;
}
if (static::$polygon[1225]
->isInside($lat, $lng)) {
return 395;
}
else {
return 322;
}
}
}
}
}
}
else {
if ($lng < 21.813858) {
return 202;
}
else {
if ($lat < 13.610691) {
if (static::$polygon[1226]
->isInside($lat, $lng)) {
return 214;
}
if (static::$polygon[1227]
->isInside($lat, $lng)) {
return 322;
}
else {
return 202;
}
}
else {
if (static::$polygon[1228]
->isInside($lat, $lng)) {
return 322;
}
else {
return 202;
}
}
}
}
}
else {
if ($lat < 10.86916) {
if ($lng < 28.141894) {
if ($lat < 8.127629000000001) {
if ($lng < 26.559885) {
if ($lat < 6.756863) {
if (static::$polygon[1229]
->isInside($lat, $lng)) {
return 395;
}
else {
return 214;
}
}
else {
if (static::$polygon[1230]
->isInside($lat, $lng)) {
return 214;
}
else {
return 395;
}
}
}
else {
if (static::$polygon[1231]
->isInside($lat, $lng)) {
return 214;
}
else {
return 395;
}
}
}
else {
if (static::$polygon[1232]
->isInside($lat, $lng)) {
return 322;
}
else {
return 395;
}
}
}
else {
if (static::$polygon[1233]
->isInside($lat, $lng)) {
return 395;
}
else {
return 322;
}
}
}
else {
return 322;
}
}
}
}
else {
if ($lat < 12.219149) {
if ($lat < 4.629333) {
if ($lng < 35.947697) {
if ($lng < 33.626804) {
if (static::$polygon[1234]
->isInside($lat, $lng)) {
return 395;
}
else {
return 179;
}
}
else {
if ($lat < 2.444137) {
if (static::$polygon[1235]
->isInside($lat, $lng)) {
return 179;
}
else {
return 122;
}
}
else {
if (static::$polygon[1236]
->isInside($lat, $lng)) {
return 179;
}
if (static::$polygon[1237]
->isInside($lat, $lng)) {
return 395;
}
else {
return 122;
}
}
}
}
else {
if (static::$polygon[1238]
->isInside($lat, $lng)) {
return 350;
}
else {
return 122;
}
}
}
else {
if ($lng < 35.437428) {
if ($lat < 8.424241) {
if ($lng < 33.37167) {
if (static::$polygon[1239]
->isInside($lat, $lng)) {
return 350;
}
else {
return 395;
}
}
else {
if ($lat < 6.526787) {
if (static::$polygon[1240]
->isInside($lat, $lng)) {
return 350;
}
else {
return 395;
}
}
else {
if (static::$polygon[1241]
->isInside($lat, $lng)) {
return 395;
}
if (static::$polygon[1242]
->isInside($lat, $lng)) {
return 395;
}
if (static::$polygon[1243]
->isInside($lat, $lng)) {
return 395;
}
else {
return 350;
}
}
}
}
else {
if ($lng < 33.37167) {
if (static::$polygon[1244]
->isInside($lat, $lng)) {
return 322;
}
if (static::$polygon[1245]
->isInside($lat, $lng)) {
return 322;
}
if (static::$polygon[1246]
->isInside($lat, $lng)) {
return 350;
}
if (static::$polygon[1247]
->isInside($lat, $lng)) {
return 350;
}
else {
return 395;
}
}
else {
if ($lat < 10.321695) {
if (static::$polygon[1248]
->isInside($lat, $lng)) {
return 322;
}
if (static::$polygon[1249]
->isInside($lat, $lng)) {
return 350;
}
if (static::$polygon[1250]
->isInside($lat, $lng)) {
return 350;
}
if (static::$polygon[1251]
->isInside($lat, $lng)) {
return 350;
}
else {
return 395;
}
}
else {
if (static::$polygon[1252]
->isInside($lat, $lng)) {
return 350;
}
if (static::$polygon[1253]
->isInside($lat, $lng)) {
return 350;
}
if (static::$polygon[1254]
->isInside($lat, $lng)) {
return 395;
}
else {
return 322;
}
}
}
}
}
else {
if (static::$polygon[1255]
->isInside($lat, $lng)) {
return 322;
}
if (static::$polygon[1256]
->isInside($lat, $lng)) {
return 395;
}
else {
return 350;
}
}
}
}
else {
if ($lng < 35.437428) {
if (static::$polygon[1257]
->isInside($lat, $lng)) {
return 350;
}
else {
return 322;
}
}
else {
if ($lat < 14.285686) {
if (static::$polygon[1258]
->isInside($lat, $lng)) {
return 149;
}
if (static::$polygon[1259]
->isInside($lat, $lng)) {
return 149;
}
if (static::$polygon[1260]
->isInside($lat, $lng)) {
return 149;
}
if (static::$polygon[1261]
->isInside($lat, $lng)) {
return 322;
}
else {
return 350;
}
}
else {
if (static::$polygon[1262]
->isInside($lat, $lng)) {
return 322;
}
if (static::$polygon[1263]
->isInside($lat, $lng)) {
return 350;
}
if (static::$polygon[1264]
->isInside($lat, $lng)) {
return 350;
}
if (static::$polygon[1265]
->isInside($lat, $lng)) {
return 350;
}
else {
return 149;
}
}
}
}
}
}