You are here

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

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

File

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

Class

GeoTimezone
Determine the time zone based on coordinates.

Namespace

Drupal\geotimezone

Code

private static function tryGetTzIndex26($lat, $lng) {
  if ($lng < 19.449118) {
    if ($lat < 46.53875) {
      if ($lng < 18.806608) {
        if ($lat < 45.239193) {
          if (static::$polygon[1423]
            ->isInside($lat, $lng)) {
            return 348;
          }
          else {
            return 30;
          }
        }
        else {
          if ($lng < 16.881983) {
            if (static::$polygon[1424]
              ->isInside($lat, $lng)) {
              return 177;
            }
            if (static::$polygon[1425]
              ->isInside($lat, $lng)) {
              return 198;
            }
            else {
              return 30;
            }
          }
          else {
            if (static::$polygon[1426]
              ->isInside($lat, $lng)) {
              return 30;
            }
            else {
              return 198;
            }
          }
        }
      }
      else {
        if ($lat < 45.712029) {
          if (static::$polygon[1427]
            ->isInside($lat, $lng)) {
            return 30;
          }
          if (static::$polygon[1428]
            ->isInside($lat, $lng)) {
            return 348;
          }
          else {
            return 209;
          }
        }
        else {
          if (static::$polygon[1429]
            ->isInside($lat, $lng)) {
            return 30;
          }
          if (static::$polygon[1430]
            ->isInside($lat, $lng)) {
            return 30;
          }
          if (static::$polygon[1431]
            ->isInside($lat, $lng)) {
            return 198;
          }
          else {
            return 209;
          }
        }
      }
    }
    else {
      if ($lat < 48.102692) {
        if ($lng < 17.203238) {
          if ($lng < 16.080298) {
            if (static::$polygon[1432]
              ->isInside($lat, $lng)) {
              return 177;
            }
            else {
              return 276;
            }
          }
          else {
            if ($lat < 47.320721) {
              if (static::$polygon[1433]
                ->isInside($lat, $lng)) {
                return 177;
              }
              if (static::$polygon[1434]
                ->isInside($lat, $lng)) {
                return 276;
              }
              else {
                return 198;
              }
            }
            else {
              if (static::$polygon[1435]
                ->isInside($lat, $lng)) {
                return 162;
              }
              if (static::$polygon[1436]
                ->isInside($lat, $lng)) {
                return 198;
              }
              else {
                return 276;
              }
            }
          }
        }
        else {
          if (static::$polygon[1437]
            ->isInside($lat, $lng)) {
            return 198;
          }
          else {
            return 162;
          }
        }
      }
      else {
        if ($lng < 17.203238) {
          if ($lat < 49.58079) {
            if (static::$polygon[1438]
              ->isInside($lat, $lng)) {
              return 162;
            }
            if (static::$polygon[1439]
              ->isInside($lat, $lng)) {
              return 220;
            }
            if (static::$polygon[1440]
              ->isInside($lat, $lng)) {
              return 220;
            }
            else {
              return 276;
            }
          }
          else {
            if ($lng < 16.080298) {
              if (static::$polygon[1441]
                ->isInside($lat, $lng)) {
                return 220;
              }
              else {
                return 186;
              }
            }
            else {
              if (static::$polygon[1442]
                ->isInside($lat, $lng)) {
                return 220;
              }
              else {
                return 186;
              }
            }
          }
        }
        else {
          if ($lat < 49.58079) {
            if (static::$polygon[1443]
              ->isInside($lat, $lng)) {
              return 186;
            }
            if (static::$polygon[1444]
              ->isInside($lat, $lng)) {
              return 220;
            }
            else {
              return 162;
            }
          }
          else {
            if (static::$polygon[1445]
              ->isInside($lat, $lng)) {
              return 162;
            }
            if (static::$polygon[1446]
              ->isInside($lat, $lng)) {
              return 220;
            }
            else {
              return 186;
            }
          }
        }
      }
    }
  }
  else {
    if ($lng < 24.644997) {
      if ($lat < 46.189445) {
        if ($lng < 22.047057) {
          if ($lng < 20.748087) {
            if (static::$polygon[1447]
              ->isInside($lat, $lng)) {
              return 198;
            }
            if (static::$polygon[1448]
              ->isInside($lat, $lng)) {
              return 198;
            }
            if (static::$polygon[1449]
              ->isInside($lat, $lng)) {
              return 266;
            }
            else {
              return 209;
            }
          }
          else {
            if (static::$polygon[1450]
              ->isInside($lat, $lng)) {
              return 209;
            }
            else {
              return 266;
            }
          }
        }
        else {
          return 266;
        }
      }
      else {
        if ($lat < 46.192638) {
          if ($lng < 20.503389) {
            if (static::$polygon[1451]
              ->isInside($lat, $lng)) {
              return 266;
            }
            else {
              return 198;
            }
          }
          else {
            if ($lng < 20.511267) {
              if (static::$polygon[1452]
                ->isInside($lat, $lng)) {
                return 266;
              }
              else {
                return 198;
              }
            }
            else {
              if (static::$polygon[1453]
                ->isInside($lat, $lng)) {
                return 266;
              }
              else {
                return 198;
              }
            }
          }
        }
        else {
          if ($lng < 22.047057) {
            if ($lat < 48.625763) {
              if ($lng < 20.748087) {
                if (static::$polygon[1454]
                  ->isInside($lat, $lng)) {
                  return 198;
                }
                if (static::$polygon[1455]
                  ->isInside($lat, $lng)) {
                  return 266;
                }
                else {
                  return 162;
                }
              }
              else {
                if ($lat < 47.409201) {
                  if (static::$polygon[1456]
                    ->isInside($lat, $lng)) {
                    return 198;
                  }
                  else {
                    return 266;
                  }
                }
                else {
                  if (static::$polygon[1457]
                    ->isInside($lat, $lng)) {
                    return 162;
                  }
                  if (static::$polygon[1458]
                    ->isInside($lat, $lng)) {
                    return 266;
                  }
                  else {
                    return 198;
                  }
                }
              }
            }
            else {
              if (static::$polygon[1459]
                ->isInside($lat, $lng)) {
                return 162;
              }
              else {
                return 186;
              }
            }
          }
          else {
            if ($lat < 48.625763) {
              if ($lng < 23.346027) {
                if ($lat < 47.409201) {
                  return 266;
                }
                else {
                  if ($lng < 22.696542) {
                    if (static::$polygon[1460]
                      ->isInside($lat, $lng)) {
                      return 162;
                    }
                    if (static::$polygon[1461]
                      ->isInside($lat, $lng)) {
                      return 266;
                    }
                    if (static::$polygon[1462]
                      ->isInside($lat, $lng)) {
                      return 387;
                    }
                    else {
                      return 198;
                    }
                  }
                  else {
                    if (static::$polygon[1463]
                      ->isInside($lat, $lng)) {
                      return 198;
                    }
                    if (static::$polygon[1464]
                      ->isInside($lat, $lng)) {
                      return 266;
                    }
                    else {
                      return 387;
                    }
                  }
                }
              }
              else {
                if (static::$polygon[1465]
                  ->isInside($lat, $lng)) {
                  return 266;
                }
                if (static::$polygon[1466]
                  ->isInside($lat, $lng)) {
                  return 275;
                }
                if (static::$polygon[1467]
                  ->isInside($lat, $lng)) {
                  return 275;
                }
                else {
                  return 387;
                }
              }
            }
            else {
              if ($lng < 23.346027) {
                if ($lat < 49.842325) {
                  if ($lng < 22.696542) {
                    if (static::$polygon[1468]
                      ->isInside($lat, $lng)) {
                      return 162;
                    }
                    if (static::$polygon[1469]
                      ->isInside($lat, $lng)) {
                      return 275;
                    }
                    if (static::$polygon[1470]
                      ->isInside($lat, $lng)) {
                      return 387;
                    }
                    else {
                      return 186;
                    }
                  }
                  else {
                    if (static::$polygon[1471]
                      ->isInside($lat, $lng)) {
                      return 186;
                    }
                    if (static::$polygon[1472]
                      ->isInside($lat, $lng)) {
                      return 186;
                    }
                    if (static::$polygon[1473]
                      ->isInside($lat, $lng)) {
                      return 387;
                    }
                    else {
                      return 275;
                    }
                  }
                }
                else {
                  if (static::$polygon[1474]
                    ->isInside($lat, $lng)) {
                    return 275;
                  }
                  else {
                    return 186;
                  }
                }
              }
              else {
                if (static::$polygon[1475]
                  ->isInside($lat, $lng)) {
                  return 186;
                }
                if (static::$polygon[1476]
                  ->isInside($lat, $lng)) {
                  return 387;
                }
                else {
                  return 275;
                }
              }
            }
          }
        }
      }
    }
    else {
      if ($lat < 47.972097) {
        if ($lng < 27.390221) {
          if (static::$polygon[1477]
            ->isInside($lat, $lng)) {
            return 275;
          }
          if (static::$polygon[1478]
            ->isInside($lat, $lng)) {
            return 294;
          }
          else {
            return 266;
          }
        }
        else {
          if ($lat < 46.428702) {
            if ($lng < 28.762833) {
              if (static::$polygon[1479]
                ->isInside($lat, $lng)) {
                return 266;
              }
              if (static::$polygon[1480]
                ->isInside($lat, $lng)) {
                return 275;
              }
              else {
                return 294;
              }
            }
            else {
              if (static::$polygon[1481]
                ->isInside($lat, $lng)) {
                return 266;
              }
              if (static::$polygon[1482]
                ->isInside($lat, $lng)) {
                return 294;
              }
              if (static::$polygon[1483]
                ->isInside($lat, $lng)) {
                return 294;
              }
              if (static::$polygon[1484]
                ->isInside($lat, $lng)) {
                return 294;
              }
              if (static::$polygon[1485]
                ->isInside($lat, $lng)) {
                return 294;
              }
              if (static::$polygon[1486]
                ->isInside($lat, $lng)) {
                return 294;
              }
              else {
                return 275;
              }
            }
          }
          else {
            if ($lng < 28.762833) {
              if (static::$polygon[1487]
                ->isInside($lat, $lng)) {
                return 266;
              }
              else {
                return 294;
              }
            }
            else {
              if ($lat < 47.2004) {
                if ($lng < 29.449139) {
                  if (static::$polygon[1488]
                    ->isInside($lat, $lng)) {
                    return 275;
                  }
                  if (static::$polygon[1489]
                    ->isInside($lat, $lng)) {
                    return 275;
                  }
                  else {
                    return 294;
                  }
                }
                else {
                  if (static::$polygon[1490]
                    ->isInside($lat, $lng)) {
                    return 294;
                  }
                  else {
                    return 275;
                  }
                }
              }
              else {
                if (static::$polygon[1491]
                  ->isInside($lat, $lng)) {
                  return 294;
                }
                else {
                  return 275;
                }
              }
            }
          }
        }
      }
      else {
        if ($lng < 27.390221) {
          if ($lat < 49.515492) {
            if ($lng < 26.017609) {
              if (static::$polygon[1492]
                ->isInside($lat, $lng)) {
                return 266;
              }
              else {
                return 275;
              }
            }
            else {
              if ($lat < 48.743795) {
                if ($lng < 26.703915) {
                  if (static::$polygon[1493]
                    ->isInside($lat, $lng)) {
                    return 266;
                  }
                  if (static::$polygon[1494]
                    ->isInside($lat, $lng)) {
                    return 294;
                  }
                  else {
                    return 275;
                  }
                }
                else {
                  if (static::$polygon[1495]
                    ->isInside($lat, $lng)) {
                    return 266;
                  }
                  if (static::$polygon[1496]
                    ->isInside($lat, $lng)) {
                    return 275;
                  }
                  else {
                    return 294;
                  }
                }
              }
              else {
                return 275;
              }
            }
          }
          else {
            return 275;
          }
        }
        else {
          if (static::$polygon[1497]
            ->isInside($lat, $lng)) {
            return 294;
          }
          if (static::$polygon[1498]
            ->isInside($lat, $lng)) {
            return 294;
          }
          else {
            return 275;
          }
        }
      }
    }
  }
}