private static function GeoTimezone::tryGetTzIndex21 in Geo Time Zone 6
Same name and namespace in other branches
- 8.3 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex21()
- 8 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex21()
- 8.2 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex21()
- 6.2 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex21()
- 7.2 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex21()
- 7 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex21()
1 call to GeoTimezone::tryGetTzIndex21()
File
- src/
GeoTimezone.php, line 23862 - Contains \Drupal\geotimezone\GeoTimezoneMap.
Class
- GeoTimezone
- Determine the timezone based on coordinates.
Namespace
Drupal\geotimezoneCode
private static function tryGetTzIndex21($lat, $lng) {
if ($lng < 24.421398) {
if ($lat < -5.927235) {
if ($lng < 12.664001) {
if ($lat < -6.026062) {
if ($lng < 12.560946) {
if ($lat < -6.060813) {
return 299;
}
else {
return 331;
}
}
else {
return 299;
}
}
else {
return 331;
}
}
else {
if ($lng < 12.869216) {
if ($lat < -6.012101) {
return 299;
}
else {
if ($lat < -5.979688) {
if ($lng < 12.722283) {
return 331;
}
else {
return 299;
}
}
else {
return 331;
}
}
}
else {
if ($lng < 12.944152) {
return 299;
}
else {
if ($lng < 18.682775) {
if ($lng < 15.813463) {
return 299;
}
else {
if ($lng < 17.248119) {
if (static::$polygon[1152]
->isInside($lat, $lng)) {
return 331;
}
else {
return 299;
}
}
else {
if (static::$polygon[1153]
->isInside($lat, $lng)) {
return 299;
}
else {
return 331;
}
}
}
}
else {
if ($lng < 21.552087) {
if (static::$polygon[1154]
->isInside($lat, $lng)) {
return 299;
}
if (static::$polygon[1155]
->isInside($lat, $lng)) {
return 352;
}
else {
return 331;
}
}
else {
if (static::$polygon[1156]
->isInside($lat, $lng)) {
return 299;
}
else {
return 352;
}
}
}
}
}
}
}
else {
if ($lng < 9.921646000000001) {
return 155;
}
else {
if ($lng < 17.86531) {
if ($lat < -5.841628) {
if ($lng < 12.922298) {
if ($lng < 12.876115) {
if (static::$polygon[1157]
->isInside($lat, $lng)) {
return 299;
}
else {
return 331;
}
}
else {
return 331;
}
}
else {
if ($lng < 13.986273) {
if (static::$polygon[1158]
->isInside($lat, $lng)) {
return 331;
}
else {
return 299;
}
}
else {
if (static::$polygon[1159]
->isInside($lat, $lng)) {
return 299;
}
else {
return 331;
}
}
}
}
else {
if ($lng < 13.893478) {
if ($lat < -2.791343) {
if ($lng < 11.956557) {
if (static::$polygon[1160]
->isInside($lat, $lng)) {
return 155;
}
else {
return 154;
}
}
else {
if ($lat < -4.316486) {
if ($lng < 12.925017) {
if (static::$polygon[1161]
->isInside($lat, $lng)) {
return 154;
}
if (static::$polygon[1162]
->isInside($lat, $lng)) {
return 331;
}
else {
return 299;
}
}
else {
if (static::$polygon[1163]
->isInside($lat, $lng)) {
return 299;
}
if (static::$polygon[1164]
->isInside($lat, $lng)) {
return 331;
}
else {
return 154;
}
}
}
else {
if (static::$polygon[1165]
->isInside($lat, $lng)) {
return 155;
}
if (static::$polygon[1166]
->isInside($lat, $lng)) {
return 155;
}
else {
return 154;
}
}
}
}
else {
if ($lng < 11.907562) {
if (static::$polygon[1167]
->isInside($lat, $lng)) {
return 154;
}
else {
return 155;
}
}
else {
if (static::$polygon[1168]
->isInside($lat, $lng)) {
return 154;
}
if (static::$polygon[1169]
->isInside($lat, $lng)) {
return 154;
}
if (static::$polygon[1170]
->isInside($lat, $lng)) {
return 154;
}
else {
return 155;
}
}
}
}
else {
if ($lat < -2.791343) {
if (static::$polygon[1171]
->isInside($lat, $lng)) {
return 154;
}
else {
return 331;
}
}
else {
if ($lng < 15.879394) {
if (static::$polygon[1172]
->isInside($lat, $lng)) {
return 154;
}
if (static::$polygon[1173]
->isInside($lat, $lng)) {
return 154;
}
else {
return 155;
}
}
else {
if (static::$polygon[1174]
->isInside($lat, $lng)) {
return 331;
}
else {
return 154;
}
}
}
}
}
}
else {
if ($lng < 21.143354) {
if (static::$polygon[1175]
->isInside($lat, $lng)) {
return 352;
}
else {
return 331;
}
}
else {
if ($lat < -2.834147) {
return 352;
}
else {
if ($lng < 22.782376) {
if (static::$polygon[1176]
->isInside($lat, $lng)) {
return 352;
}
else {
return 331;
}
}
else {
if (static::$polygon[1177]
->isInside($lat, $lng)) {
return 331;
}
else {
return 352;
}
}
}
}
}
}
}
}
else {
if ($lat < -5.718678) {
if ($lng < 30.744639) {
if (static::$polygon[1178]
->isInside($lat, $lng)) {
return 17;
}
else {
return 352;
}
}
else {
return 17;
}
}
else {
if ($lng < 39.221806) {
if ($lng < 30.895958) {
if ($lat < -2.078556) {
if ($lng < 27.658678) {
return 352;
}
else {
if ($lat < -3.898617) {
if (static::$polygon[1179]
->isInside($lat, $lng)) {
return 83;
}
if (static::$polygon[1180]
->isInside($lat, $lng)) {
return 352;
}
else {
return 17;
}
}
else {
if ($lng < 29.277318) {
if (static::$polygon[1181]
->isInside($lat, $lng)) {
return 83;
}
if (static::$polygon[1182]
->isInside($lat, $lng)) {
return 293;
}
else {
return 352;
}
}
else {
if ($lat < -2.988586) {
if (static::$polygon[1183]
->isInside($lat, $lng)) {
return 83;
}
else {
return 17;
}
}
else {
if ($lng < 30.086638) {
if (static::$polygon[1184]
->isInside($lat, $lng)) {
return 293;
}
else {
return 83;
}
}
else {
if (static::$polygon[1185]
->isInside($lat, $lng)) {
return 17;
}
if (static::$polygon[1186]
->isInside($lat, $lng)) {
return 293;
}
else {
return 83;
}
}
}
}
}
}
}
else {
if ($lng < 27.658678) {
return 352;
}
else {
if ($lng < 29.277318) {
if (static::$polygon[1187]
->isInside($lat, $lng)) {
return 293;
}
else {
return 352;
}
}
else {
if ($lat < -0.909808) {
if ($lng < 30.086638) {
if (static::$polygon[1188]
->isInside($lat, $lng)) {
return 293;
}
if (static::$polygon[1189]
->isInside($lat, $lng)) {
return 352;
}
else {
return 179;
}
}
else {
if (static::$polygon[1190]
->isInside($lat, $lng)) {
return 17;
}
if (static::$polygon[1191]
->isInside($lat, $lng)) {
return 179;
}
else {
return 293;
}
}
}
else {
if (static::$polygon[1192]
->isInside($lat, $lng)) {
return 352;
}
else {
return 179;
}
}
}
}
}
}
else {
if ($lat < -5.085639) {
return 17;
}
else {
if (static::$polygon[1193]
->isInside($lat, $lng)) {
return 122;
}
if (static::$polygon[1194]
->isInside($lat, $lng)) {
return 179;
}
else {
return 17;
}
}
}
}
else {
return 122;
}
}
}
}