private static function GeoTimezone::tryGetTzIndex12 in Geo Time Zone 8.2
Same name and namespace in other branches
- 8.3 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex12()
- 8 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex12()
- 6.2 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex12()
- 6 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex12()
- 7.2 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex12()
- 7 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex12()
1 call to GeoTimezone::tryGetTzIndex12()
File
- src/
GeoTimezone.php, line 17988 - Contains \Drupal\geotimezone\GeoTimezone.
Class
- GeoTimezone
- Determine the time zone based on coordinates.
Namespace
Drupal\geotimezoneCode
private static function tryGetTzIndex12($lat, $lng) {
if ($lat < 47.060444) {
if ($lng < -66.343018) {
if ($lat < 44.22908) {
return 165;
}
else {
if ($lng < -67.827522) {
if ($lng < -69.624689) {
if (static::$polygon[840]
->isInside($lat, $lng)) {
return 20;
}
else {
return 165;
}
}
else {
return 165;
}
}
else {
if ($lng < -66.94194) {
if ($lat < 44.620262) {
return 165;
}
else {
if ($lat < 45.028847) {
if (static::$polygon[841]
->isInside($lat, $lng)) {
return 77;
}
if (static::$polygon[842]
->isInside($lat, $lng)) {
return 77;
}
else {
return 165;
}
}
else {
if ($lng < -67.090355) {
if (static::$polygon[843]
->isInside($lat, $lng)) {
return 77;
}
else {
return 165;
}
}
else {
return 77;
}
}
}
}
else {
if ($lat < 44.283012) {
return 118;
}
else {
return 77;
}
}
}
}
}
else {
if ($lat < 44.991669) {
if ($lat < 32.393833) {
return 256;
}
else {
return 118;
}
}
else {
if ($lng < -61.939835) {
if ($lng < -63.777946) {
if ($lat < 46.279369) {
if ($lat < 46.006592) {
if ($lng < -64.992493) {
if ($lat < 45.085256) {
return 118;
}
else {
if (static::$polygon[844]
->isInside($lat, $lng)) {
return 118;
}
else {
return 77;
}
}
}
else {
if ($lat < 45.387333) {
return 118;
}
else {
if (static::$polygon[845]
->isInside($lat, $lng)) {
return 77;
}
else {
return 118;
}
}
}
}
else {
return 77;
}
}
else {
if ($lng < -64.516182) {
return 77;
}
else {
return 118;
}
}
}
else {
return 118;
}
}
else {
if ($lng < -60.89753) {
return 118;
}
else {
if ($lat < 45.826886) {
if ($lng < -60.766365) {
return 118;
}
else {
if (static::$polygon[846]
->isInside($lat, $lng)) {
return 81;
}
else {
return 118;
}
}
}
else {
if ($lng < -60.311749) {
if (static::$polygon[847]
->isInside($lat, $lng)) {
return 81;
}
if (static::$polygon[848]
->isInside($lat, $lng)) {
return 81;
}
else {
return 118;
}
}
else {
return 81;
}
}
}
}
}
}
}
else {
if ($lng < -59.584435) {
if ($lat < 50.081348) {
if ($lat < 47.63916) {
if ($lng < -64.803614) {
if ($lng < -67.78652099999999) {
if (static::$polygon[849]
->isInside($lat, $lng)) {
return 20;
}
if (static::$polygon[850]
->isInside($lat, $lng)) {
return 165;
}
else {
return 77;
}
}
else {
return 77;
}
}
else {
return 118;
}
}
else {
if ($lat < 48.065315) {
if ($lng < -66.119873) {
if ($lng < -66.526045) {
if ($lng < -69.40606099999999) {
return 20;
}
else {
if (static::$polygon[851]
->isInside($lat, $lng)) {
return 77;
}
if (static::$polygon[852]
->isInside($lat, $lng)) {
return 77;
}
else {
return 20;
}
}
}
else {
if ($lng < -66.291616) {
if (static::$polygon[853]
->isInside($lat, $lng)) {
return 20;
}
else {
return 77;
}
}
else {
return 77;
}
}
}
else {
if ($lng < -64.751419) {
if ($lat < 47.945091) {
return 77;
}
else {
return 20;
}
}
else {
if ($lng < -64.470963) {
return 77;
}
else {
return 118;
}
}
}
}
else {
return 20;
}
}
}
else {
if ($lng < -63.04961) {
if ($lat < 50.56728) {
return 20;
}
else {
if ($lng < -66.63820800000001) {
if (static::$polygon[854]
->isInside($lat, $lng)) {
return 182;
}
else {
return 20;
}
}
else {
if ($lng < -64.843909) {
if ($lat < 51.732883) {
if (static::$polygon[855]
->isInside($lat, $lng)) {
return 182;
}
else {
return 20;
}
}
else {
if ($lng < -65.741058) {
if (static::$polygon[856]
->isInside($lat, $lng)) {
return 182;
}
else {
return 20;
}
}
else {
if (static::$polygon[857]
->isInside($lat, $lng)) {
return 182;
}
else {
return 20;
}
}
}
}
else {
if ($lat < 51.732883) {
if (static::$polygon[858]
->isInside($lat, $lng)) {
return 182;
}
else {
return 20;
}
}
else {
if (static::$polygon[859]
->isInside($lat, $lng)) {
return 182;
}
else {
return 20;
}
}
}
}
}
}
else {
if ($lat < 50.218616) {
if ($lng < -61.578325) {
if ($lng < -62.098534) {
return 20;
}
else {
if (static::$polygon[860]
->isInside($lat, $lng)) {
return 243;
}
if (static::$polygon[861]
->isInside($lat, $lng)) {
return 243;
}
else {
return 20;
}
}
}
else {
return 243;
}
}
else {
if ($lat < 50.348381) {
if ($lng < -61.1746) {
if ($lat < 50.275) {
if ($lng < -62.354403) {
return 20;
}
else {
if (static::$polygon[862]
->isInside($lat, $lng)) {
return 243;
}
else {
return 20;
}
}
}
else {
if (static::$polygon[863]
->isInside($lat, $lng)) {
return 243;
}
else {
return 20;
}
}
}
else {
return 243;
}
}
else {
if ($lat < 50.675139) {
if (static::$polygon[864]
->isInside($lat, $lng)) {
return 20;
}
else {
return 243;
}
}
else {
if (static::$polygon[865]
->isInside($lat, $lng)) {
return 182;
}
else {
return 20;
}
}
}
}
}
}
}
else {
if ($lat < 50.841103) {
if ($lng < -58.832348) {
if ($lat < 50.645809) {
if ($lat < 48.753311) {
return 290;
}
else {
return 243;
}
}
else {
if ($lng < -59.43232) {
if (static::$polygon[866]
->isInside($lat, $lng)) {
return 243;
}
else {
return 20;
}
}
else {
return 243;
}
}
}
else {
return 290;
}
}
else {
if ($lng < -58.273293) {
if ($lat < 51.162445) {
if ($lng < -59.1029) {
if (static::$polygon[867]
->isInside($lat, $lng)) {
return 20;
}
else {
return 243;
}
}
else {
return 243;
}
}
else {
if ($lng < -58.370186) {
if ($lat < 51.204712) {
if ($lng < -58.86437) {
if (static::$polygon[868]
->isInside($lat, $lng)) {
return 243;
}
else {
return 20;
}
}
else {
return 243;
}
}
else {
if ($lat < 51.4571) {
if ($lng < -58.647963) {
if (static::$polygon[869]
->isInside($lat, $lng)) {
return 243;
}
if (static::$polygon[870]
->isInside($lat, $lng)) {
return 243;
}
if (static::$polygon[871]
->isInside($lat, $lng)) {
return 243;
}
else {
return 20;
}
}
else {
if ($lat < 51.296436) {
return 243;
}
else {
if ($lng < -58.4325) {
if (static::$polygon[872]
->isInside($lat, $lng)) {
return 20;
}
else {
return 243;
}
}
else {
if (static::$polygon[873]
->isInside($lat, $lng)) {
return 20;
}
else {
return 243;
}
}
}
}
}
else {
if (static::$polygon[874]
->isInside($lat, $lng)) {
return 182;
}
else {
return 20;
}
}
}
}
else {
if ($lat < 51.376093) {
return 243;
}
else {
if ($lat < 51.456603) {
if (static::$polygon[875]
->isInside($lat, $lng)) {
return 20;
}
else {
return 243;
}
}
else {
if (static::$polygon[876]
->isInside($lat, $lng)) {
return 182;
}
else {
return 20;
}
}
}
}
}
}
else {
if ($lat < 51.395161) {
if ($lng < -57.116951) {
return 243;
}
else {
return 290;
}
}
else {
if ($lat < 51.401176) {
return 243;
}
else {
if ($lng < -57.687763) {
if ($lat < 51.446266) {
return 243;
}
else {
if ($lat < 51.58895) {
if (static::$polygon[877]
->isInside($lat, $lng)) {
return 20;
}
else {
return 243;
}
}
else {
if (static::$polygon[878]
->isInside($lat, $lng)) {
return 182;
}
else {
return 20;
}
}
}
}
else {
if ($lat < 51.465385) {
if ($lng < -57.257164) {
return 243;
}
else {
if ($lng < -57.096817) {
if (static::$polygon[879]
->isInside($lat, $lng)) {
return 290;
}
else {
return 243;
}
}
else {
return 290;
}
}
}
else {
if (static::$polygon[880]
->isInside($lat, $lng)) {
return 20;
}
if (static::$polygon[881]
->isInside($lat, $lng)) {
return 182;
}
if (static::$polygon[882]
->isInside($lat, $lng)) {
return 290;
}
else {
return 243;
}
}
}
}
}
}
}
}
}
}