private static function GeoTimezone::tryGetTzIndex15 in Geo Time Zone 7
Same name and namespace in other branches
- 8.3 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex15()
- 8 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex15()
- 8.2 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex15()
- 6.2 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex15()
- 6 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex15()
- 7.2 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex15()
1 call to GeoTimezone::tryGetTzIndex15()
File
- src/
GeoTimezone.php, line 19662 - Contains \Drupal\geotimezone\GeoTimezoneMap.
Class
- GeoTimezone
- Determine the timezone based on coordinates.
Namespace
Drupal\geotimezoneCode
private static function tryGetTzIndex15($lat, $lng) {
if ($lng < -123.791763) {
if ($lng < -141.0) {
if ($lng < -162.0) {
if ($lng < -168.892441) {
if ($lng < -174.074051) {
return 365;
}
else {
if ($lat < 64.842125) {
if ($lat < 63.787884) {
return 134;
}
else {
return 365;
}
}
else {
if ($lng < -169.002365) {
return 365;
}
else {
return 134;
}
}
}
}
else {
return 134;
}
}
else {
return 370;
}
}
else {
if ($lat < 69.665329) {
if ($lng < -135.200684) {
if ($lat < 69.206284) {
if ($lat < 68.963966) {
if ($lng < -136.526718) {
if ($lng < -139.361644) {
if (static::$polygon[932]
->isInside($lat, $lng)) {
return 330;
}
else {
return 324;
}
}
else {
return 324;
}
}
else {
if (static::$polygon[933]
->isInside($lat, $lng)) {
return 324;
}
else {
return 142;
}
}
}
else {
if ($lng < -137.210114) {
return 324;
}
else {
return 142;
}
}
}
else {
if ($lng < -138.279434) {
return 324;
}
else {
return 142;
}
}
}
else {
if ($lat < 68.416974) {
if ($lat < 67.004977) {
if ($lng < -129.496223) {
if ($lat < 63.808471) {
if (static::$polygon[934]
->isInside($lat, $lng)) {
return 142;
}
if (static::$polygon[935]
->isInside($lat, $lng)) {
return 142;
}
else {
return 324;
}
}
else {
if ($lng < -132.348454) {
if ($lat < 65.406724) {
if (static::$polygon[936]
->isInside($lat, $lng)) {
return 142;
}
if (static::$polygon[937]
->isInside($lat, $lng)) {
return 142;
}
else {
return 324;
}
}
else {
if (static::$polygon[938]
->isInside($lat, $lng)) {
return 324;
}
else {
return 142;
}
}
}
else {
if (static::$polygon[939]
->isInside($lat, $lng)) {
return 324;
}
if (static::$polygon[940]
->isInside($lat, $lng)) {
return 324;
}
if (static::$polygon[941]
->isInside($lat, $lng)) {
return 324;
}
if (static::$polygon[942]
->isInside($lat, $lng)) {
return 324;
}
else {
return 142;
}
}
}
}
else {
if ($lat < 63.808471) {
if ($lng < -126.643993) {
if (static::$polygon[943]
->isInside($lat, $lng)) {
return 324;
}
if (static::$polygon[944]
->isInside($lat, $lng)) {
return 324;
}
else {
return 142;
}
}
else {
if (static::$polygon[945]
->isInside($lat, $lng)) {
return 324;
}
else {
return 142;
}
}
}
else {
return 142;
}
}
}
else {
if (static::$polygon[946]
->isInside($lat, $lng)) {
return 142;
}
if (static::$polygon[947]
->isInside($lat, $lng)) {
return 142;
}
else {
return 56;
}
}
}
else {
return 142;
}
}
}
else {
return 142;
}
}
}
else {
if ($lat < 68.452187) {
if ($lng < -109.338089) {
if ($lng < -113.141373) {
if ($lng < -114.096313) {
if ($lng < -114.526794) {
if ($lng < -114.826683) {
if ($lng < -114.954285) {
if (static::$polygon[948]
->isInside($lat, $lng)) {
return 142;
}
else {
return 108;
}
}
else {
if ($lat < 66.009722) {
if (static::$polygon[949]
->isInside($lat, $lng)) {
return 108;
}
else {
return 142;
}
}
else {
return 108;
}
}
}
else {
if ($lat < 65.964136) {
if (static::$polygon[950]
->isInside($lat, $lng)) {
return 108;
}
else {
return 142;
}
}
else {
return 108;
}
}
}
else {
if ($lat < 65.857001) {
if (static::$polygon[951]
->isInside($lat, $lng)) {
return 108;
}
else {
return 142;
}
}
else {
return 108;
}
}
}
else {
if ($lat < 65.703211) {
if (static::$polygon[952]
->isInside($lat, $lng)) {
return 108;
}
else {
return 142;
}
}
else {
return 108;
}
}
}
else {
if ($lat < 65.48130999999999) {
if (static::$polygon[953]
->isInside($lat, $lng)) {
return 108;
}
else {
return 142;
}
}
else {
return 108;
}
}
}
else {
if ($lat < 66.82914700000001) {
if ($lat < 64.649325) {
if (static::$polygon[954]
->isInside($lat, $lng)) {
return 108;
}
else {
return 142;
}
}
else {
return 108;
}
}
else {
return 108;
}
}
}
else {
if ($lat < 72.171257) {
if ($lat < 70.471046) {
if ($lng < -113.461769) {
if ($lng < -113.989479) {
if ($lat < 68.929214) {
if ($lng < -121.789716) {
if (static::$polygon[955]
->isInside($lat, $lng)) {
return 108;
}
else {
return 142;
}
}
else {
return 108;
}
}
else {
if ($lng < -117.239929) {
if ($lat < 69.66681699999999) {
if (static::$polygon[956]
->isInside($lat, $lng)) {
return 108;
}
else {
return 142;
}
}
else {
return 142;
}
}
else {
if ($lat < 69.653069) {
return 108;
}
else {
if (static::$polygon[957]
->isInside($lat, $lng)) {
return 108;
}
else {
return 142;
}
}
}
}
}
else {
if ($lat < 69.212112) {
return 108;
}
else {
if (static::$polygon[958]
->isInside($lat, $lng)) {
return 142;
}
else {
return 108;
}
}
}
}
else {
if ($lat < 68.873958) {
return 108;
}
else {
if ($lng < -112.620987) {
if ($lat < 70.034142) {
if (static::$polygon[959]
->isInside($lat, $lng)) {
return 142;
}
else {
return 108;
}
}
else {
return 142;
}
}
else {
if ($lng < -112.567856) {
if ($lat < 69.78515899999999) {
if (static::$polygon[960]
->isInside($lat, $lng)) {
return 142;
}
else {
return 108;
}
}
else {
return 142;
}
}
else {
if (static::$polygon[961]
->isInside($lat, $lng)) {
return 108;
}
else {
return 142;
}
}
}
}
}
}
else {
if ($lng < -109.971375) {
return 142;
}
else {
return 108;
}
}
}
else {
if ($lng < -109.972572) {
return 142;
}
else {
if ($lng < -109.971375) {
return 142;
}
else {
return 108;
}
}
}
}
}
}