private static function GeoTimezone::tryGetTzIndex39 in Geo Time Zone 6
Same name and namespace in other branches
- 8.3 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex39()
- 8 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex39()
- 8.2 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex39()
- 6.2 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex39()
- 7.2 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex39()
- 7 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex39()
1 call to GeoTimezone::tryGetTzIndex39()
File
- src/
GeoTimezone.php, line 30201 - Contains \Drupal\geotimezone\GeoTimezoneMap.
Class
- GeoTimezone
- Determine the timezone based on coordinates.
Namespace
Drupal\geotimezoneCode
private static function tryGetTzIndex39($lat, $lng) {
if ($lat < 27.104834) {
if ($lng < 55.210827) {
if ($lng < 53.523224) {
if ($lng < 51.746334) {
if ($lng < 50.828693) {
if ($lng < 50.664471) {
if ($lng < 50.359833) {
return 163;
}
else {
if ($lat < 25.509583) {
return 163;
}
else {
return 109;
}
}
}
else {
if ($lat < 25.615926) {
if ($lat < 25.523945) {
if ($lat < 24.963544) {
if (static::$polygon[2248]
->isInside($lat, $lng)) {
return 100;
}
else {
return 163;
}
}
else {
return 100;
}
}
else {
if ($lng < 50.817749) {
if (static::$polygon[2249]
->isInside($lat, $lng)) {
return 100;
}
else {
return 109;
}
}
else {
return 100;
}
}
}
else {
return 109;
}
}
}
else {
if ($lat < 24.743839) {
if ($lng < 51.580971) {
if ($lng < 51.478639) {
if (static::$polygon[2250]
->isInside($lat, $lng)) {
return 100;
}
else {
return 163;
}
}
else {
if ($lng < 51.511971) {
return 163;
}
else {
if ($lat < 24.283293) {
return 163;
}
else {
return 321;
}
}
}
}
else {
if ($lat < 24.2399) {
if (static::$polygon[2251]
->isInside($lat, $lng)) {
return 163;
}
else {
return 321;
}
}
else {
return 321;
}
}
}
else {
return 100;
}
}
}
else {
if ($lat < 24.356861) {
if ($lat < 23.924778) {
if (static::$polygon[2252]
->isInside($lat, $lng)) {
return 321;
}
else {
return 163;
}
}
else {
return 321;
}
}
else {
if ($lat < 25.154139) {
return 321;
}
else {
if ($lng < 52.427582) {
return 100;
}
else {
return 55;
}
}
}
}
}
else {
if ($lat < 24.475027) {
if ($lat < 22.826911) {
if (static::$polygon[2253]
->isInside($lat, $lng)) {
return 321;
}
else {
return 163;
}
}
else {
return 321;
}
}
else {
if ($lat < 25.246805) {
return 321;
}
else {
if ($lat < 25.897194) {
if ($lng < 54.772754) {
return 55;
}
else {
return 321;
}
}
else {
return 55;
}
}
}
}
}
else {
if ($lng < 66.393387) {
if ($lng < 56.537693) {
if ($lat < 26.387972) {
if ($lat < 25.553473) {
if ($lat < 24.98311) {
if (static::$polygon[2254]
->isInside($lat, $lng)) {
return 163;
}
if (static::$polygon[2255]
->isInside($lat, $lng)) {
return 321;
}
if (static::$polygon[2256]
->isInside($lat, $lng)) {
return 321;
}
else {
return 357;
}
}
else {
return 321;
}
}
else {
if ($lat < 26.286167) {
if ($lng < 55.572693) {
if ($lat < 25.918639) {
return 55;
}
else {
return 321;
}
}
else {
if ($lng < 55.973804) {
return 321;
}
else {
if (static::$polygon[2257]
->isInside($lat, $lng)) {
return 321;
}
else {
return 357;
}
}
}
}
else {
return 357;
}
}
}
else {
return 55;
}
}
else {
if ($lng < 58.490417) {
if ($lat < 24.613961) {
return 357;
}
else {
return 55;
}
}
else {
if ($lat < 23.643444) {
return 357;
}
else {
if ($lng < 63.281387) {
if ($lng < 59.965057) {
return 55;
}
else {
if ($lat < 26.874584) {
if ($lng < 61.623222) {
if (static::$polygon[2258]
->isInside($lat, $lng)) {
return 210;
}
else {
return 55;
}
}
else {
if (static::$polygon[2259]
->isInside($lat, $lng)) {
return 55;
}
else {
return 210;
}
}
}
else {
if (static::$polygon[2260]
->isInside($lat, $lng)) {
return 210;
}
else {
return 55;
}
}
}
}
else {
return 210;
}
}
}
}
}
else {
if ($lng < 67.529053) {
return 210;
}
else {
if ($lat < 23.647362) {
return 371;
}
else {
if ($lng < 68.25808000000001) {
if ($lat < 23.653912) {
return 371;
}
else {
if (static::$polygon[2261]
->isInside($lat, $lng)) {
return 371;
}
if (static::$polygon[2262]
->isInside($lat, $lng)) {
return 371;
}
if (static::$polygon[2263]
->isInside($lat, $lng)) {
return 371;
}
else {
return 210;
}
}
}
else {
if ($lat < 23.734138) {
return 371;
}
else {
if (static::$polygon[2264]
->isInside($lat, $lng)) {
return 210;
}
else {
return 371;
}
}
}
}
}
}
}
}
else {
if ($lat < 40.672585) {
return static::tryGetTzIndex33($lat, $lng);
}
else {
if ($lng < 49.625584) {
return static::tryGetTzIndex32($lat, $lng);
}
else {
if ($lat < 46.052723) {
if ($lng < 52.873138) {
if ($lat < 42.038017) {
if ($lat < 40.823005) {
return 76;
}
else {
if (static::$polygon[2265]
->isInside($lat, $lng)) {
return 120;
}
else {
return 76;
}
}
}
else {
return 120;
}
}
else {
if ($lng < 59.666477) {
if ($lat < 44.892151) {
if ($lat < 44.271465) {
if ($lng < 56.269808) {
if (static::$polygon[2266]
->isInside($lat, $lng)) {
return 120;
}
if (static::$polygon[2267]
->isInside($lat, $lng)) {
return 167;
}
else {
return 76;
}
}
else {
if ($lat < 42.472025) {
if (static::$polygon[2268]
->isInside($lat, $lng)) {
return 167;
}
if (static::$polygon[2269]
->isInside($lat, $lng)) {
return 167;
}
if (static::$polygon[2270]
->isInside($lat, $lng)) {
return 167;
}
else {
return 76;
}
}
else {
if (static::$polygon[2271]
->isInside($lat, $lng)) {
return 76;
}
if (static::$polygon[2272]
->isInside($lat, $lng)) {
return 76;
}
else {
return 167;
}
}
}
}
else {
if ($lng < 55.998606) {
if (static::$polygon[2273]
->isInside($lat, $lng)) {
return 167;
}
else {
return 120;
}
}
else {
return 167;
}
}
}
else {
if ($lng < 58.60796) {
if (static::$polygon[2274]
->isInside($lat, $lng)) {
return 167;
}
if (static::$polygon[2275]
->isInside($lat, $lng)) {
return 239;
}
if (static::$polygon[2276]
->isInside($lat, $lng)) {
return 240;
}
else {
return 120;
}
}
else {
if ($lat < 45.436764) {
if ($lng < 59.239082) {
if ($lat < 44.974435) {
return 167;
}
else {
if (static::$polygon[2277]
->isInside($lat, $lng)) {
return 239;
}
else {
return 167;
}
}
}
else {
if (static::$polygon[2278]
->isInside($lat, $lng)) {
return 239;
}
else {
return 167;
}
}
}
else {
if ($lat < 45.622234) {
return 239;
}
else {
if (static::$polygon[2279]
->isInside($lat, $lng)) {
return 240;
}
else {
return 239;
}
}
}
}
}
}
else {
if ($lng < 62.074552) {
if ($lat < 44.584438) {
if ($lat < 42.306305) {
if ($lng < 59.827972) {
if (static::$polygon[2280]
->isInside($lat, $lng)) {
return 167;
}
else {
return 76;
}
}
else {
if (static::$polygon[2281]
->isInside($lat, $lng)) {
return 167;
}
else {
return 76;
}
}
}
else {
if (static::$polygon[2282]
->isInside($lat, $lng)) {
return 239;
}
else {
return 167;
}
}
}
else {
return 239;
}
}
else {
if ($lng < 65.31974700000001) {
if (static::$polygon[2283]
->isInside($lat, $lng)) {
return 239;
}
else {
return 167;
}
}
else {
if ($lat < 43.362654) {
if ($lng < 66.94234400000001) {
if (static::$polygon[2284]
->isInside($lat, $lng)) {
return 239;
}
if (static::$polygon[2285]
->isInside($lat, $lng)) {
return 246;
}
if (static::$polygon[2286]
->isInside($lat, $lng)) {
return 347;
}
else {
return 167;
}
}
else {
if (static::$polygon[2287]
->isInside($lat, $lng)) {
return 239;
}
if (static::$polygon[2288]
->isInside($lat, $lng)) {
return 246;
}
else {
return 347;
}
}
}
else {
if (static::$polygon[2289]
->isInside($lat, $lng)) {
return 167;
}
if (static::$polygon[2290]
->isInside($lat, $lng)) {
return 347;
}
else {
return 239;
}
}
}
}
}
}
}
else {
if ($lat < 47.825829) {
if ($lng < 53.026917) {
return 120;
}
else {
if ($lng < 61.927216) {
if ($lng < 56.525335) {
if (static::$polygon[2291]
->isInside($lat, $lng)) {
return 240;
}
else {
return 120;
}
}
else {
if (static::$polygon[2292]
->isInside($lat, $lng)) {
return 240;
}
else {
return 239;
}
}
}
else {
if (static::$polygon[2293]
->isInside($lat, $lng)) {
return 240;
}
if (static::$polygon[2294]
->isInside($lat, $lng)) {
return 347;
}
else {
return 239;
}
}
}
}
else {
return static::tryGetTzIndex31($lat, $lng);
}
}
}
}
}
}