You are here

private static function GeoTimezone::tryGetTzIndex27 in Geo Time Zone 8.3

Same name and namespace in other branches
  1. 8 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex27()
  2. 8.2 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex27()
  3. 6.2 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex27()
  4. 6 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex27()
  5. 7.2 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex27()
  6. 7 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::tryGetTzIndex27()
1 call to GeoTimezone::tryGetTzIndex27()
GeoTimezone::getTimezoneIndex in src/GeoTimezone.php

File

src/GeoTimezone.php, line 26699
Contains \Drupal\geotimezone\GeoTimezone.

Class

GeoTimezone
Determine the time zone based on coordinates.

Namespace

Drupal\geotimezone

Code

private static function tryGetTzIndex27($lat, $lng) {
  if ($lat < 51.058887) {
    if ($lng < 30.135445) {
      if ($lng < 14.957358) {
        if ($lat < 45.246277) {
          return 30;
        }
        else {
          if ($lat < 46.63039) {
            if ($lng < 13.369805) {
              if ($lat < 45.721138) {
                return 271;
              }
              else {
                if (static::$polygon[1499]
                  ->isInside($lat, $lng)) {
                  return 276;
                }
                else {
                  return 271;
                }
              }
            }
            else {
              if ($lat < 45.749973) {
                if ($lng < 13.470082) {
                  return 271;
                }
                else {
                  if ($lng < 13.552361) {
                    if ($lat < 45.506027) {
                      return 30;
                    }
                    else {
                      return 271;
                    }
                  }
                  else {
                    if (static::$polygon[1500]
                      ->isInside($lat, $lng)) {
                      return 177;
                    }
                    if (static::$polygon[1501]
                      ->isInside($lat, $lng)) {
                      return 271;
                    }
                    else {
                      return 30;
                    }
                  }
                }
              }
              else {
                if ($lng < 14.955778) {
                  if (static::$polygon[1502]
                    ->isInside($lat, $lng)) {
                    return 271;
                  }
                  if (static::$polygon[1503]
                    ->isInside($lat, $lng)) {
                    return 276;
                  }
                  else {
                    return 177;
                  }
                }
                else {
                  if (static::$polygon[1504]
                    ->isInside($lat, $lng)) {
                    return 276;
                  }
                  else {
                    return 177;
                  }
                }
              }
            }
          }
          else {
            if ($lat < 47.915885) {
              if ($lat < 47.721027) {
                if (static::$polygon[1505]
                  ->isInside($lat, $lng)) {
                  return 6;
                }
                else {
                  return 276;
                }
              }
              else {
                if (static::$polygon[1506]
                  ->isInside($lat, $lng)) {
                  return 6;
                }
                else {
                  return 276;
                }
              }
            }
            else {
              if ($lat < 49.336078) {
                if ($lng < 13.96047) {
                  if (static::$polygon[1507]
                    ->isInside($lat, $lng)) {
                    return 220;
                  }
                  if (static::$polygon[1508]
                    ->isInside($lat, $lng)) {
                    return 276;
                  }
                  else {
                    return 6;
                  }
                }
                else {
                  if (static::$polygon[1509]
                    ->isInside($lat, $lng)) {
                    return 276;
                  }
                  if (static::$polygon[1510]
                    ->isInside($lat, $lng)) {
                    return 276;
                  }
                  else {
                    return 220;
                  }
                }
              }
              else {
                if (static::$polygon[1511]
                  ->isInside($lat, $lng)) {
                  return 6;
                }
                if (static::$polygon[1512]
                  ->isInside($lat, $lng)) {
                  return 186;
                }
                else {
                  return 220;
                }
              }
            }
          }
        }
      }
      else {
        return static::tryGetTzIndex26($lat, $lng);
      }
    }
    else {
      if ($lng < 32.325027) {
        return 275;
      }
      else {
        if ($lng < 33.260555) {
          if ($lat < 45.807167) {
            return 197;
          }
          else {
            return 275;
          }
        }
        else {
          if ($lng < 37.223877) {
            if ($lat < 45.442917) {
              if ($lng < 36.583805) {
                if (static::$polygon[1513]
                  ->isInside($lat, $lng)) {
                  return 183;
                }
                else {
                  return 197;
                }
              }
              else {
                if (static::$polygon[1514]
                  ->isInside($lat, $lng)) {
                  return 197;
                }
                else {
                  return 183;
                }
              }
            }
            else {
              if ($lat < 45.476776) {
                return 197;
              }
              else {
                if ($lat < 48.130928) {
                  if ($lng < 35.246422) {
                    if ($lat < 46.282494) {
                      if ($lng < 34.253489) {
                        if (static::$polygon[1515]
                          ->isInside($lat, $lng)) {
                          return 197;
                        }
                        else {
                          return 275;
                        }
                      }
                      else {
                        if (static::$polygon[1516]
                          ->isInside($lat, $lng)) {
                          return 146;
                        }
                        if (static::$polygon[1517]
                          ->isInside($lat, $lng)) {
                          return 197;
                        }
                        else {
                          return 275;
                        }
                      }
                    }
                    else {
                      if ($lng < 34.253489) {
                        if (static::$polygon[1518]
                          ->isInside($lat, $lng)) {
                          return 146;
                        }
                        else {
                          return 275;
                        }
                      }
                      else {
                        if ($lat < 47.206711) {
                          if (static::$polygon[1519]
                            ->isInside($lat, $lng)) {
                            return 275;
                          }
                          else {
                            return 146;
                          }
                        }
                        else {
                          if (static::$polygon[1520]
                            ->isInside($lat, $lng)) {
                            return 146;
                          }
                          else {
                            return 275;
                          }
                        }
                      }
                    }
                  }
                  else {
                    if ($lng < 36.235149) {
                      if (static::$polygon[1521]
                        ->isInside($lat, $lng)) {
                        return 275;
                      }
                      else {
                        return 146;
                      }
                    }
                    else {
                      if (static::$polygon[1522]
                        ->isInside($lat, $lng)) {
                        return 275;
                      }
                      if (static::$polygon[1523]
                        ->isInside($lat, $lng)) {
                        return 275;
                      }
                      else {
                        return 146;
                      }
                    }
                  }
                }
                else {
                  if ($lng < 35.303777) {
                    if (static::$polygon[1524]
                      ->isInside($lat, $lng)) {
                      return 183;
                    }
                    else {
                      return 275;
                    }
                  }
                  else {
                    if (static::$polygon[1525]
                      ->isInside($lat, $lng)) {
                      return 183;
                    }
                    else {
                      return 275;
                    }
                  }
                }
              }
            }
          }
          else {
            if ($lat < 46.770611) {
              return 183;
            }
            else {
              if ($lng < 40.20739) {
                if ($lat < 48.914749) {
                  if ($lng < 38.715633) {
                    if (static::$polygon[1526]
                      ->isInside($lat, $lng)) {
                      return 183;
                    }
                    if (static::$polygon[1527]
                      ->isInside($lat, $lng)) {
                      return 183;
                    }
                    else {
                      return 275;
                    }
                  }
                  else {
                    if (static::$polygon[1528]
                      ->isInside($lat, $lng)) {
                      return 275;
                    }
                    else {
                      return 183;
                    }
                  }
                }
                else {
                  if (static::$polygon[1529]
                    ->isInside($lat, $lng)) {
                    return 275;
                  }
                  else {
                    return 183;
                  }
                }
              }
              else {
                if ($lat < 48.914749) {
                  if (static::$polygon[1530]
                    ->isInside($lat, $lng)) {
                    return 99;
                  }
                  else {
                    return 183;
                  }
                }
                else {
                  if (static::$polygon[1531]
                    ->isInside($lat, $lng)) {
                    return 183;
                  }
                  else {
                    return 99;
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  else {
    if ($lng < 15.497833) {
      if ($lat < 54.210609) {
        if ($lng < 13.778584) {
          return 6;
        }
        else {
          if ($lng < 13.804861) {
            return 6;
          }
          else {
            if ($lng < 14.358836) {
              if ($lat < 53.741001) {
                if ($lat < 53.08812) {
                  if (static::$polygon[1532]
                    ->isInside($lat, $lng)) {
                    return 186;
                  }
                  else {
                    return 6;
                  }
                }
                else {
                  if (static::$polygon[1533]
                    ->isInside($lat, $lng)) {
                    return 186;
                  }
                  else {
                    return 6;
                  }
                }
              }
              else {
                if ($lng < 14.092113) {
                  return 6;
                }
                else {
                  if ($lat < 53.759693) {
                    return 6;
                  }
                  else {
                    if ($lng < 14.224361) {
                      if (static::$polygon[1534]
                        ->isInside($lat, $lng)) {
                        return 186;
                      }
                      else {
                        return 6;
                      }
                    }
                    else {
                      return 186;
                    }
                  }
                }
              }
            }
            else {
              if ($lat < 53.467436) {
                if ($lat < 52.747607) {
                  if (static::$polygon[1535]
                    ->isInside($lat, $lng)) {
                    return 6;
                  }
                  else {
                    return 186;
                  }
                }
                else {
                  if (static::$polygon[1536]
                    ->isInside($lat, $lng)) {
                    return 6;
                  }
                  else {
                    return 186;
                  }
                }
              }
              else {
                return 186;
              }
            }
          }
        }
      }
      else {
        if ($lat < 54.683807) {
          return 6;
        }
        else {
          if ($lat < 55.30014) {
            return 319;
          }
          else {
            return 375;
          }
        }
      }
    }
    else {
      if ($lng < 16.890838) {
        if ($lat < 54.592905) {
          return 186;
        }
        else {
          return 375;
        }
      }
      else {
        if ($lng < 35.202944) {
          if ($lng < 22.892805) {
            if ($lat < 55.724445) {
              if ($lat < 54.813721) {
                if (static::$polygon[1537]
                  ->isInside($lat, $lng)) {
                  return 53;
                }
                if (static::$polygon[1538]
                  ->isInside($lat, $lng)) {
                  return 175;
                }
                if (static::$polygon[1539]
                  ->isInside($lat, $lng)) {
                  return 175;
                }
                else {
                  return 186;
                }
              }
              else {
                if ($lng < 18.363342) {
                  return 186;
                }
                else {
                  if (static::$polygon[1540]
                    ->isInside($lat, $lng)) {
                    return 53;
                  }
                  if (static::$polygon[1541]
                    ->isInside($lat, $lng)) {
                    return 53;
                  }
                  else {
                    return 175;
                  }
                }
              }
            }
            else {
              if (static::$polygon[1542]
                ->isInside($lat, $lng)) {
                return 53;
              }
              else {
                return 332;
              }
            }
          }
          else {
            if ($lng < 29.047875) {
              if ($lng < 25.97034) {
                if ($lat < 53.979597) {
                  if ($lng < 24.431573) {
                    if ($lat < 52.519242) {
                      if ($lng < 23.662189) {
                        if (static::$polygon[1543]
                          ->isInside($lat, $lng)) {
                          return 275;
                        }
                        if (static::$polygon[1544]
                          ->isInside($lat, $lng)) {
                          return 275;
                        }
                        if (static::$polygon[1545]
                          ->isInside($lat, $lng)) {
                          return 275;
                        }
                        if (static::$polygon[1546]
                          ->isInside($lat, $lng)) {
                          return 275;
                        }
                        if (static::$polygon[1547]
                          ->isInside($lat, $lng)) {
                          return 399;
                        }
                        if (static::$polygon[1548]
                          ->isInside($lat, $lng)) {
                          return 399;
                        }
                        else {
                          return 186;
                        }
                      }
                      else {
                        if (static::$polygon[1549]
                          ->isInside($lat, $lng)) {
                          return 186;
                        }
                        if (static::$polygon[1550]
                          ->isInside($lat, $lng)) {
                          return 186;
                        }
                        if (static::$polygon[1551]
                          ->isInside($lat, $lng)) {
                          return 186;
                        }
                        if (static::$polygon[1552]
                          ->isInside($lat, $lng)) {
                          return 186;
                        }
                        if (static::$polygon[1553]
                          ->isInside($lat, $lng)) {
                          return 399;
                        }
                        if (static::$polygon[1554]
                          ->isInside($lat, $lng)) {
                          return 399;
                        }
                        else {
                          return 275;
                        }
                      }
                    }
                    else {
                      if (static::$polygon[1555]
                        ->isInside($lat, $lng)) {
                        return 53;
                      }
                      if (static::$polygon[1556]
                        ->isInside($lat, $lng)) {
                        return 186;
                      }
                      else {
                        return 399;
                      }
                    }
                  }
                  else {
                    if (static::$polygon[1557]
                      ->isInside($lat, $lng)) {
                      return 53;
                    }
                    if (static::$polygon[1558]
                      ->isInside($lat, $lng)) {
                      return 53;
                    }
                    if (static::$polygon[1559]
                      ->isInside($lat, $lng)) {
                      return 275;
                    }
                    else {
                      return 399;
                    }
                  }
                }
                else {
                  if ($lng < 24.431573) {
                    if (static::$polygon[1560]
                      ->isInside($lat, $lng)) {
                      return 186;
                    }
                    if (static::$polygon[1561]
                      ->isInside($lat, $lng)) {
                      return 332;
                    }
                    else {
                      return 53;
                    }
                  }
                  else {
                    if (static::$polygon[1562]
                      ->isInside($lat, $lng)) {
                      return 332;
                    }
                    if (static::$polygon[1563]
                      ->isInside($lat, $lng)) {
                      return 399;
                    }
                    if (static::$polygon[1564]
                      ->isInside($lat, $lng)) {
                      return 399;
                    }
                    else {
                      return 53;
                    }
                  }
                }
              }
              else {
                if ($lat < 53.979597) {
                  if (static::$polygon[1565]
                    ->isInside($lat, $lng)) {
                    return 399;
                  }
                  else {
                    return 275;
                  }
                }
                else {
                  if ($lng < 27.509107) {
                    if ($lat < 55.439952) {
                      if (static::$polygon[1566]
                        ->isInside($lat, $lng)) {
                        return 53;
                      }
                      else {
                        return 399;
                      }
                    }
                    else {
                      if (static::$polygon[1567]
                        ->isInside($lat, $lng)) {
                        return 53;
                      }
                      if (static::$polygon[1568]
                        ->isInside($lat, $lng)) {
                        return 399;
                      }
                      else {
                        return 332;
                      }
                    }
                  }
                  else {
                    if (static::$polygon[1569]
                      ->isInside($lat, $lng)) {
                      return 332;
                    }
                    if (static::$polygon[1570]
                      ->isInside($lat, $lng)) {
                      return 399;
                    }
                    else {
                      return 183;
                    }
                  }
                }
              }
            }
            else {
              if ($lng < 32.12541) {
                if ($lat < 53.979597) {
                  if ($lng < 30.586642) {
                    if (static::$polygon[1571]
                      ->isInside($lat, $lng)) {
                      return 275;
                    }
                    if (static::$polygon[1572]
                      ->isInside($lat, $lng)) {
                      return 275;
                    }
                    if (static::$polygon[1573]
                      ->isInside($lat, $lng)) {
                      return 275;
                    }
                    if (static::$polygon[1574]
                      ->isInside($lat, $lng)) {
                      return 275;
                    }
                    else {
                      return 399;
                    }
                  }
                  else {
                    if ($lat < 52.519242) {
                      if (static::$polygon[1575]
                        ->isInside($lat, $lng)) {
                        return 183;
                      }
                      if (static::$polygon[1576]
                        ->isInside($lat, $lng)) {
                        return 275;
                      }
                      else {
                        return 399;
                      }
                    }
                    else {
                      if (static::$polygon[1577]
                        ->isInside($lat, $lng)) {
                        return 399;
                      }
                      else {
                        return 183;
                      }
                    }
                  }
                }
                else {
                  if ($lng < 30.586642) {
                    if (static::$polygon[1578]
                      ->isInside($lat, $lng)) {
                      return 399;
                    }
                    else {
                      return 183;
                    }
                  }
                  else {
                    if (static::$polygon[1579]
                      ->isInside($lat, $lng)) {
                      return 399;
                    }
                    else {
                      return 183;
                    }
                  }
                }
              }
              else {
                if ($lat < 53.979597) {
                  if ($lng < 33.664177) {
                    if (static::$polygon[1580]
                      ->isInside($lat, $lng)) {
                      return 275;
                    }
                    if (static::$polygon[1581]
                      ->isInside($lat, $lng)) {
                      return 399;
                    }
                    else {
                      return 183;
                    }
                  }
                  else {
                    if (static::$polygon[1582]
                      ->isInside($lat, $lng)) {
                      return 275;
                    }
                    else {
                      return 183;
                    }
                  }
                }
                else {
                  return 183;
                }
              }
            }
          }
        }
        else {
          if ($lng < 35.416372) {
            if (static::$polygon[1583]
              ->isInside($lat, $lng)) {
              return 275;
            }
            else {
              return 183;
            }
          }
          else {
            if (static::$polygon[1584]
              ->isInside($lat, $lng)) {
              return 99;
            }
            else {
              return 183;
            }
          }
        }
      }
    }
  }
}