private static function GeoTimezone::tryGetTzIndex7 in Geo Time Zone 6.2
Same name and namespace in other branches
- 8.3 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex7()
- 8 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex7()
- 8.2 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex7()
- 6 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex7()
- 7.2 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex7()
- 7 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex7()
1 call to GeoTimezone::tryGetTzIndex7()
File
- src/
GeoTimezone.php, line 16769 - Contains \Drupal\geotimezone\GeoTimezone.
Class
- GeoTimezone
- Determine the time zone based on coordinates.
Namespace
Drupal\geotimezoneCode
private static function tryGetTzIndex7($lat, $lng) {
if ($lng < -103.047236) {
if ($lng < -109.624168) {
if ($lat < 27.090626) {
if ($lng < -110.792007) {
return 407;
}
else {
return 402;
}
}
else {
if ($lat < 27.905155) {
return 402;
}
else {
if ($lat < 31.330078) {
if (static::$polygon[532]
->isInside($lat, $lng)) {
return 9;
}
else {
return 402;
}
}
else {
if (static::$polygon[533]
->isInside($lat, $lng)) {
return 273;
}
else {
return 9;
}
}
}
}
}
else {
if ($lat < 25.528921) {
if ($lng < -108.804733) {
return 407;
}
else {
if (static::$polygon[534]
->isInside($lat, $lng)) {
return 384;
}
else {
return 407;
}
}
}
else {
if ($lat < 27.061386) {
if ($lng < -106.335702) {
if ($lng < -107.979935) {
if (static::$polygon[535]
->isInside($lat, $lng)) {
return 185;
}
if (static::$polygon[536]
->isInside($lat, $lng)) {
return 402;
}
else {
return 407;
}
}
else {
if (static::$polygon[537]
->isInside($lat, $lng)) {
return 384;
}
if (static::$polygon[538]
->isInside($lat, $lng)) {
return 407;
}
else {
return 185;
}
}
}
else {
if (static::$polygon[539]
->isInside($lat, $lng)) {
return 185;
}
else {
return 384;
}
}
}
else {
if ($lng < -108.55806) {
if ($lat < 31.330776) {
if ($lat < 29.992775) {
if (static::$polygon[540]
->isInside($lat, $lng)) {
return 185;
}
else {
return 402;
}
}
else {
if (static::$polygon[541]
->isInside($lat, $lng)) {
return 185;
}
if (static::$polygon[542]
->isInside($lat, $lng)) {
return 402;
}
else {
return 133;
}
}
}
else {
if (static::$polygon[543]
->isInside($lat, $lng)) {
return 9;
}
else {
return 273;
}
}
}
else {
if ($lat < 31.159515) {
if ($lng < -105.802648) {
if (static::$polygon[544]
->isInside($lat, $lng)) {
return 185;
}
else {
return 133;
}
}
else {
if ($lat < 29.110451) {
if ($lng < -104.424942) {
return 185;
}
else {
if ($lat < 28.085918) {
if (static::$polygon[545]
->isInside($lat, $lng)) {
return 384;
}
else {
return 185;
}
}
else {
if ($lng < -103.736089) {
if (static::$polygon[546]
->isInside($lat, $lng)) {
return 133;
}
if (static::$polygon[547]
->isInside($lat, $lng)) {
return 133;
}
if (static::$polygon[548]
->isInside($lat, $lng)) {
return 384;
}
else {
return 185;
}
}
else {
if ($lat < 28.598185) {
if (static::$polygon[549]
->isInside($lat, $lng)) {
return 185;
}
else {
return 384;
}
}
else {
if ($lng < -103.391663) {
if (static::$polygon[550]
->isInside($lat, $lng)) {
return 160;
}
if (static::$polygon[551]
->isInside($lat, $lng)) {
return 185;
}
if (static::$polygon[552]
->isInside($lat, $lng)) {
return 374;
}
if (static::$polygon[553]
->isInside($lat, $lng)) {
return 384;
}
else {
return 133;
}
}
else {
if (static::$polygon[554]
->isInside($lat, $lng)) {
return 133;
}
if (static::$polygon[555]
->isInside($lat, $lng)) {
return 160;
}
if (static::$polygon[556]
->isInside($lat, $lng)) {
return 384;
}
else {
return 374;
}
}
}
}
}
}
}
else {
if ($lng < -104.424942) {
if ($lat < 30.134983) {
if (static::$polygon[557]
->isInside($lat, $lng)) {
return 160;
}
if (static::$polygon[558]
->isInside($lat, $lng)) {
return 185;
}
else {
return 133;
}
}
else {
if ($lng < -105.113795) {
if (static::$polygon[559]
->isInside($lat, $lng)) {
return 185;
}
if (static::$polygon[560]
->isInside($lat, $lng)) {
return 273;
}
else {
return 133;
}
}
else {
if (static::$polygon[561]
->isInside($lat, $lng)) {
return 160;
}
if (static::$polygon[562]
->isInside($lat, $lng)) {
return 185;
}
if (static::$polygon[563]
->isInside($lat, $lng)) {
return 185;
}
if (static::$polygon[564]
->isInside($lat, $lng)) {
return 273;
}
else {
return 133;
}
}
}
}
else {
if (static::$polygon[565]
->isInside($lat, $lng)) {
return 160;
}
if (static::$polygon[566]
->isInside($lat, $lng)) {
return 185;
}
else {
return 133;
}
}
}
}
}
else {
if ($lng < -105.802648) {
if (static::$polygon[567]
->isInside($lat, $lng)) {
return 185;
}
if (static::$polygon[568]
->isInside($lat, $lng)) {
return 185;
}
if (static::$polygon[569]
->isInside($lat, $lng)) {
return 273;
}
else {
return 133;
}
}
else {
if (static::$polygon[570]
->isInside($lat, $lng)) {
return 133;
}
if (static::$polygon[571]
->isInside($lat, $lng)) {
return 160;
}
else {
return 273;
}
}
}
}
}
}
}
}
else {
if ($lng < -97.475403) {
if ($lat < 26.857126) {
if ($lng < -100.26132) {
return 384;
}
else {
if ($lng < -98.86836099999999) {
if (static::$polygon[572]
->isInside($lat, $lng)) {
return 160;
}
if (static::$polygon[573]
->isInside($lat, $lng)) {
return 384;
}
else {
return 374;
}
}
else {
if ($lat < 26.155322) {
if ($lng < -98.171882) {
if (static::$polygon[574]
->isInside($lat, $lng)) {
return 160;
}
if (static::$polygon[575]
->isInside($lat, $lng)) {
return 160;
}
if (static::$polygon[576]
->isInside($lat, $lng)) {
return 384;
}
else {
return 374;
}
}
else {
if (static::$polygon[577]
->isInside($lat, $lng)) {
return 160;
}
if (static::$polygon[578]
->isInside($lat, $lng)) {
return 384;
}
else {
return 374;
}
}
}
else {
if (static::$polygon[579]
->isInside($lat, $lng)) {
return 374;
}
if (static::$polygon[580]
->isInside($lat, $lng)) {
return 374;
}
else {
return 160;
}
}
}
}
}
else {
if ($lng < -99.285888) {
if ($lat < 31.057385) {
if ($lat < 28.957256) {
if ($lng < -101.166562) {
if (static::$polygon[581]
->isInside($lat, $lng)) {
return 374;
}
else {
return 384;
}
}
else {
if ($lat < 27.907191) {
if ($lng < -100.226225) {
if (static::$polygon[582]
->isInside($lat, $lng)) {
return 374;
}
else {
return 384;
}
}
else {
if ($lat < 27.382159) {
if (static::$polygon[583]
->isInside($lat, $lng)) {
return 160;
}
if (static::$polygon[584]
->isInside($lat, $lng)) {
return 384;
}
else {
return 374;
}
}
else {
if (static::$polygon[585]
->isInside($lat, $lng)) {
return 160;
}
if (static::$polygon[586]
->isInside($lat, $lng)) {
return 384;
}
else {
return 374;
}
}
}
}
else {
if (static::$polygon[587]
->isInside($lat, $lng)) {
return 160;
}
if (static::$polygon[588]
->isInside($lat, $lng)) {
return 384;
}
else {
return 374;
}
}
}
}
else {
if ($lng < -101.166562) {
if ($lat < 30.007321) {
if ($lng < -102.106899) {
if ($lat < 29.482288) {
if (static::$polygon[589]
->isInside($lat, $lng)) {
return 160;
}
if (static::$polygon[590]
->isInside($lat, $lng)) {
return 384;
}
else {
return 374;
}
}
else {
if (static::$polygon[591]
->isInside($lat, $lng)) {
return 160;
}
if (static::$polygon[592]
->isInside($lat, $lng)) {
return 384;
}
else {
return 374;
}
}
}
else {
if ($lat < 29.482288) {
if (static::$polygon[593]
->isInside($lat, $lng)) {
return 160;
}
if (static::$polygon[594]
->isInside($lat, $lng)) {
return 384;
}
else {
return 374;
}
}
else {
if (static::$polygon[595]
->isInside($lat, $lng)) {
return 160;
}
if (static::$polygon[596]
->isInside($lat, $lng)) {
return 384;
}
if (static::$polygon[597]
->isInside($lat, $lng)) {
return 384;
}
if (static::$polygon[598]
->isInside($lat, $lng)) {
return 384;
}
if (static::$polygon[599]
->isInside($lat, $lng)) {
return 384;
}
else {
return 374;
}
}
}
}
else {
return 160;
}
}
else {
if (static::$polygon[600]
->isInside($lat, $lng)) {
return 160;
}
if (static::$polygon[601]
->isInside($lat, $lng)) {
return 384;
}
else {
return 374;
}
}
}
}
else {
return 160;
}
}
else {
return 160;
}
}
}
else {
if ($lat < 25.878584) {
if ($lat < 25.603125) {
if ($lng < -97.45034) {
if (static::$polygon[602]
->isInside($lat, $lng)) {
return 374;
}
else {
return 384;
}
}
else {
if (static::$polygon[603]
->isInside($lat, $lng)) {
return 374;
}
else {
return 384;
}
}
}
else {
if (static::$polygon[604]
->isInside($lat, $lng)) {
return 160;
}
else {
return 374;
}
}
}
else {
return 160;
}
}
}
}