private static function GeoTimezone::tryGetTzIndex23 in Geo Time Zone 6
Same name and namespace in other branches
- 8.3 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex23()
- 8 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex23()
- 8.2 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex23()
- 6.2 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex23()
- 7.2 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex23()
- 7 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex23()
1 call to GeoTimezone::tryGetTzIndex23()
File
- src/
GeoTimezone.php, line 24290 - Contains \Drupal\geotimezone\GeoTimezoneMap.
Class
- GeoTimezone
- Determine the timezone based on coordinates.
Namespace
Drupal\geotimezoneCode
private static function tryGetTzIndex23($lat, $lng) {
if ($lng < 39.923779) {
if ($lng < 18.649839) {
if ($lat < 3.973938) {
if ($lng < 8.937982) {
if ($lng < 7.466374) {
return 161;
}
else {
return 201;
}
}
else {
if ($lng < 9.527758) {
if ($lat < 0.922485) {
if ($lat < 0.66844) {
return 155;
}
else {
return 201;
}
}
else {
if ($lat < 1.464501) {
return 201;
}
else {
return 326;
}
}
}
else {
if ($lng < 11.335724) {
if ($lat < 0.279823) {
return 155;
}
else {
if ($lat < 2.346989) {
if (static::$polygon[1266]
->isInside($lat, $lng)) {
return 155;
}
if (static::$polygon[1267]
->isInside($lat, $lng)) {
return 326;
}
else {
return 201;
}
}
else {
return 326;
}
}
}
else {
if ($lng < 14.992782) {
if ($lat < 2.116439) {
if ($lng < 13.164253) {
if (static::$polygon[1268]
->isInside($lat, $lng)) {
return 154;
}
if (static::$polygon[1269]
->isInside($lat, $lng)) {
return 154;
}
if (static::$polygon[1270]
->isInside($lat, $lng)) {
return 154;
}
else {
return 155;
}
}
else {
if ($lat < 1.18769) {
if (static::$polygon[1271]
->isInside($lat, $lng)) {
return 155;
}
else {
return 154;
}
}
else {
if ($lng < 14.078517) {
if (static::$polygon[1272]
->isInside($lat, $lng)) {
return 154;
}
else {
return 155;
}
}
else {
if (static::$polygon[1273]
->isInside($lat, $lng)) {
return 155;
}
if (static::$polygon[1274]
->isInside($lat, $lng)) {
return 326;
}
if (static::$polygon[1275]
->isInside($lat, $lng)) {
return 326;
}
else {
return 154;
}
}
}
}
}
else {
if (static::$polygon[1276]
->isInside($lat, $lng)) {
return 154;
}
if (static::$polygon[1277]
->isInside($lat, $lng)) {
return 154;
}
if (static::$polygon[1278]
->isInside($lat, $lng)) {
return 155;
}
else {
return 326;
}
}
}
else {
if ($lat < 2.116439) {
if ($lng < 16.821311) {
if (static::$polygon[1279]
->isInside($lat, $lng)) {
return 326;
}
else {
return 154;
}
}
else {
if (static::$polygon[1280]
->isInside($lat, $lng)) {
return 331;
}
else {
return 154;
}
}
}
else {
if ($lng < 16.821311) {
if (static::$polygon[1281]
->isInside($lat, $lng)) {
return 154;
}
if (static::$polygon[1282]
->isInside($lat, $lng)) {
return 326;
}
else {
return 214;
}
}
else {
if ($lat < 3.045189) {
if (static::$polygon[1283]
->isInside($lat, $lng)) {
return 331;
}
else {
return 154;
}
}
else {
if (static::$polygon[1284]
->isInside($lat, $lng)) {
return 214;
}
if (static::$polygon[1285]
->isInside($lat, $lng)) {
return 331;
}
else {
return 154;
}
}
}
}
}
}
}
}
}
else {
if ($lng < 8.34163) {
if ($lat < 4.832398) {
return 96;
}
else {
if (static::$polygon[1286]
->isInside($lat, $lng)) {
return 260;
}
else {
return 96;
}
}
}
else {
if ($lat < 4.686236) {
if ($lng < 8.714308000000001) {
return 326;
}
else {
if ($lng < 15.18347) {
if ($lat < 4.054228) {
if ($lng < 9.648236000000001) {
return 326;
}
else {
if (static::$polygon[1287]
->isInside($lat, $lng)) {
return 214;
}
else {
return 326;
}
}
}
else {
if (static::$polygon[1288]
->isInside($lat, $lng)) {
return 214;
}
else {
return 326;
}
}
}
else {
if (static::$polygon[1289]
->isInside($lat, $lng)) {
return 331;
}
else {
return 214;
}
}
}
}
else {
if ($lat < 10.519229) {
if ($lng < 13.495735) {
if ($lat < 7.602733) {
if ($lng < 10.918682) {
if ($lat < 6.144484) {
if (static::$polygon[1290]
->isInside($lat, $lng)) {
return 326;
}
else {
return 96;
}
}
else {
if (static::$polygon[1291]
->isInside($lat, $lng)) {
return 326;
}
else {
return 96;
}
}
}
else {
if (static::$polygon[1292]
->isInside($lat, $lng)) {
return 96;
}
else {
return 326;
}
}
}
else {
if (static::$polygon[1293]
->isInside($lat, $lng)) {
return 326;
}
else {
return 96;
}
}
}
else {
if ($lat < 7.602733) {
if ($lng < 16.072787) {
if ($lat < 6.144484) {
if (static::$polygon[1294]
->isInside($lat, $lng)) {
return 326;
}
else {
return 214;
}
}
else {
if (static::$polygon[1295]
->isInside($lat, $lng)) {
return 202;
}
if (static::$polygon[1296]
->isInside($lat, $lng)) {
return 326;
}
else {
return 214;
}
}
}
else {
if (static::$polygon[1297]
->isInside($lat, $lng)) {
return 202;
}
if (static::$polygon[1298]
->isInside($lat, $lng)) {
return 202;
}
else {
return 214;
}
}
}
else {
if ($lng < 16.072787) {
if ($lat < 9.060981) {
if (static::$polygon[1299]
->isInside($lat, $lng)) {
return 326;
}
else {
return 202;
}
}
else {
if (static::$polygon[1300]
->isInside($lat, $lng)) {
return 96;
}
if (static::$polygon[1301]
->isInside($lat, $lng)) {
return 202;
}
else {
return 326;
}
}
}
else {
if (static::$polygon[1302]
->isInside($lat, $lng)) {
return 214;
}
if (static::$polygon[1303]
->isInside($lat, $lng)) {
return 214;
}
else {
return 202;
}
}
}
}
}
else {
if ($lng < 13.495735) {
if ($lat < 13.435726) {
if (static::$polygon[1304]
->isInside($lat, $lng)) {
return 260;
}
else {
return 96;
}
}
else {
if (static::$polygon[1305]
->isInside($lat, $lng)) {
return 96;
}
if (static::$polygon[1306]
->isInside($lat, $lng)) {
return 202;
}
else {
return 260;
}
}
}
else {
if ($lat < 13.435726) {
if ($lng < 16.072787) {
if ($lat < 11.977477) {
if (static::$polygon[1307]
->isInside($lat, $lng)) {
return 96;
}
if (static::$polygon[1308]
->isInside($lat, $lng)) {
return 202;
}
else {
return 326;
}
}
else {
if ($lng < 14.784261) {
if (static::$polygon[1309]
->isInside($lat, $lng)) {
return 96;
}
if (static::$polygon[1310]
->isInside($lat, $lng)) {
return 202;
}
else {
return 326;
}
}
else {
if (static::$polygon[1311]
->isInside($lat, $lng)) {
return 326;
}
else {
return 202;
}
}
}
}
else {
return 202;
}
}
else {
if (static::$polygon[1312]
->isInside($lat, $lng)) {
return 96;
}
if (static::$polygon[1313]
->isInside($lat, $lng)) {
return 260;
}
if (static::$polygon[1314]
->isInside($lat, $lng)) {
return 260;
}
else {
return 202;
}
}
}
}
}
}
}
}
else {
if ($lng < 39.568943) {
return static::tryGetTzIndex22($lat, $lng);
}
else {
if ($lat < 14.553577) {
if ($lat < 3.903177) {
if (static::$polygon[1315]
->isInside($lat, $lng)) {
return 350;
}
else {
return 122;
}
}
else {
if (static::$polygon[1316]
->isInside($lat, $lng)) {
return 149;
}
else {
return 350;
}
}
}
else {
return 149;
}
}
}
}
else {
if ($lat < 14.457556) {
if ($lat < 4.141098) {
if (static::$polygon[1317]
->isInside($lat, $lng)) {
return 350;
}
else {
return 122;
}
}
else {
if ($lng < 40.114882) {
if (static::$polygon[1318]
->isInside($lat, $lng)) {
return 149;
}
else {
return 350;
}
}
else {
if (static::$polygon[1319]
->isInside($lat, $lng)) {
return 149;
}
else {
return 350;
}
}
}
}
else {
return 149;
}
}
}