You are here

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

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

File

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

Class

GeoTimezone
Determine the time zone based on coordinates.

Namespace

Drupal\geotimezone

Code

private static function tryGetTzIndex36($lat, $lng) {
  if ($lng < 83.50942999999999) {
    if ($lng < 76.03718600000001) {
      if ($lat < 55.768539) {
        if ($lng < 72.301064) {
          if ($lat < 53.128227) {
            return 347;
          }
          else {
            if ($lng < 70.433002) {
              if (static::$polygon[2052]
                ->isInside($lat, $lng)) {
                return 178;
              }
              if (static::$polygon[2053]
                ->isInside($lat, $lng)) {
                return 379;
              }
              else {
                return 347;
              }
            }
            else {
              if ($lat < 54.448383) {
                if (static::$polygon[2054]
                  ->isInside($lat, $lng)) {
                  return 379;
                }
                else {
                  return 347;
                }
              }
              else {
                if (static::$polygon[2055]
                  ->isInside($lat, $lng)) {
                  return 178;
                }
                if (static::$polygon[2056]
                  ->isInside($lat, $lng)) {
                  return 347;
                }
                else {
                  return 379;
                }
              }
            }
          }
        }
        else {
          if ($lat < 53.128227) {
            return 347;
          }
          else {
            if ($lng < 74.16912499999999) {
              if ($lat < 54.448383) {
                if ($lng < 73.235094) {
                  if (static::$polygon[2057]
                    ->isInside($lat, $lng)) {
                    return 379;
                  }
                  else {
                    return 347;
                  }
                }
                else {
                  if (static::$polygon[2058]
                    ->isInside($lat, $lng)) {
                    return 379;
                  }
                  else {
                    return 347;
                  }
                }
              }
              else {
                return 379;
              }
            }
            else {
              if ($lat < 54.448383) {
                if (static::$polygon[2059]
                  ->isInside($lat, $lng)) {
                  return 95;
                }
                if (static::$polygon[2060]
                  ->isInside($lat, $lng)) {
                  return 379;
                }
                else {
                  return 347;
                }
              }
              else {
                if (static::$polygon[2061]
                  ->isInside($lat, $lng)) {
                  return 379;
                }
                if (static::$polygon[2062]
                  ->isInside($lat, $lng)) {
                  return 379;
                }
                else {
                  return 95;
                }
              }
            }
          }
        }
      }
      else {
        if ($lng < 72.301064) {
          if ($lat < 58.408852) {
            if ($lng < 70.433002) {
              if (static::$polygon[2063]
                ->isInside($lat, $lng)) {
                return 379;
              }
              if (static::$polygon[2064]
                ->isInside($lat, $lng)) {
                return 379;
              }
              if (static::$polygon[2065]
                ->isInside($lat, $lng)) {
                return 379;
              }
              else {
                return 178;
              }
            }
            else {
              if ($lat < 57.088696) {
                if (static::$polygon[2066]
                  ->isInside($lat, $lng)) {
                  return 379;
                }
                else {
                  return 178;
                }
              }
              else {
                if (static::$polygon[2067]
                  ->isInside($lat, $lng)) {
                  return 379;
                }
                else {
                  return 178;
                }
              }
            }
          }
          else {
            if (static::$polygon[2068]
              ->isInside($lat, $lng)) {
              return 379;
            }
            else {
              return 178;
            }
          }
        }
        else {
          if ($lat < 58.408852) {
            if (static::$polygon[2069]
              ->isInside($lat, $lng)) {
              return 95;
            }
            if (static::$polygon[2070]
              ->isInside($lat, $lng)) {
              return 95;
            }
            if (static::$polygon[2071]
              ->isInside($lat, $lng)) {
              return 95;
            }
            if (static::$polygon[2072]
              ->isInside($lat, $lng)) {
              return 95;
            }
            if (static::$polygon[2073]
              ->isInside($lat, $lng)) {
              return 178;
            }
            else {
              return 379;
            }
          }
          else {
            if (static::$polygon[2074]
              ->isInside($lat, $lng)) {
              return 95;
            }
            if (static::$polygon[2075]
              ->isInside($lat, $lng)) {
              return 379;
            }
            else {
              return 178;
            }
          }
        }
      }
    }
    else {
      if ($lat < 55.768539) {
        if ($lng < 79.773308) {
          if ($lat < 53.128227) {
            if (static::$polygon[2076]
              ->isInside($lat, $lng)) {
              return 379;
            }
            else {
              return 347;
            }
          }
          else {
            if ($lng < 77.905247) {
              if (static::$polygon[2077]
                ->isInside($lat, $lng)) {
                return 347;
              }
              if (static::$polygon[2078]
                ->isInside($lat, $lng)) {
                return 379;
              }
              else {
                return 95;
              }
            }
            else {
              if (static::$polygon[2079]
                ->isInside($lat, $lng)) {
                return 95;
              }
              if (static::$polygon[2080]
                ->isInside($lat, $lng)) {
                return 347;
              }
              else {
                return 379;
              }
            }
          }
        }
        else {
          if ($lat < 53.128227) {
            if ($lng < 81.641369) {
              if (static::$polygon[2081]
                ->isInside($lat, $lng)) {
                return 379;
              }
              else {
                return 347;
              }
            }
            else {
              if (static::$polygon[2082]
                ->isInside($lat, $lng)) {
                return 379;
              }
              else {
                return 347;
              }
            }
          }
          else {
            if ($lng < 81.641369) {
              if (static::$polygon[2083]
                ->isInside($lat, $lng)) {
                return 379;
              }
              else {
                return 95;
              }
            }
            else {
              if (static::$polygon[2084]
                ->isInside($lat, $lng)) {
                return 379;
              }
              else {
                return 95;
              }
            }
          }
        }
      }
      else {
        if ($lng < 79.773308) {
          if ($lat < 58.408852) {
            if (static::$polygon[2085]
              ->isInside($lat, $lng)) {
              return 379;
            }
            if (static::$polygon[2086]
              ->isInside($lat, $lng)) {
              return 379;
            }
            else {
              return 95;
            }
          }
          else {
            if (static::$polygon[2087]
              ->isInside($lat, $lng)) {
              return 178;
            }
            else {
              return 95;
            }
          }
        }
        else {
          if (static::$polygon[2088]
            ->isInside($lat, $lng)) {
            return 178;
          }
          else {
            return 95;
          }
        }
      }
    }
  }
  else {
    if ($lat < 50.955069) {
      if ($lng < 84.233223) {
        if ($lat < 50.515362) {
          if (static::$polygon[2089]
            ->isInside($lat, $lng)) {
            return 379;
          }
          else {
            return 347;
          }
        }
        else {
          if (static::$polygon[2090]
            ->isInside($lat, $lng)) {
            return 379;
          }
          else {
            return 347;
          }
        }
      }
      else {
        if (static::$polygon[2091]
          ->isInside($lat, $lng)) {
          return 379;
        }
        else {
          return 289;
        }
      }
    }
    else {
      if ($lat < 56.002116) {
        if ($lng < 87.293533) {
          if ($lat < 53.478593) {
            if (static::$polygon[2092]
              ->isInside($lat, $lng)) {
              return 87;
            }
            if (static::$polygon[2093]
              ->isInside($lat, $lng)) {
              return 87;
            }
            else {
              return 379;
            }
          }
          else {
            if ($lng < 85.401482) {
              if ($lat < 54.740354) {
                if (static::$polygon[2094]
                  ->isInside($lat, $lng)) {
                  return 87;
                }
                if (static::$polygon[2095]
                  ->isInside($lat, $lng)) {
                  return 379;
                }
                else {
                  return 95;
                }
              }
              else {
                if (static::$polygon[2096]
                  ->isInside($lat, $lng)) {
                  return 95;
                }
                else {
                  return 87;
                }
              }
            }
            else {
              if (static::$polygon[2097]
                ->isInside($lat, $lng)) {
                return 379;
              }
              if (static::$polygon[2098]
                ->isInside($lat, $lng)) {
                return 379;
              }
              else {
                return 87;
              }
            }
          }
        }
        else {
          if ($lat < 53.478593) {
            if ($lng < 89.185585) {
              if ($lat < 52.216831) {
                if (static::$polygon[2099]
                  ->isInside($lat, $lng)) {
                  return 87;
                }
                if (static::$polygon[2100]
                  ->isInside($lat, $lng)) {
                  return 289;
                }
                else {
                  return 379;
                }
              }
              else {
                if (static::$polygon[2101]
                  ->isInside($lat, $lng)) {
                  return 289;
                }
                if (static::$polygon[2102]
                  ->isInside($lat, $lng)) {
                  return 289;
                }
                if (static::$polygon[2103]
                  ->isInside($lat, $lng)) {
                  return 379;
                }
                else {
                  return 87;
                }
              }
            }
            else {
              if (static::$polygon[2104]
                ->isInside($lat, $lng)) {
                return 87;
              }
              if (static::$polygon[2105]
                ->isInside($lat, $lng)) {
                return 379;
              }
              else {
                return 289;
              }
            }
          }
          else {
            if ($lng < 89.185585) {
              if ($lat < 54.740354) {
                if (static::$polygon[2106]
                  ->isInside($lat, $lng)) {
                  return 87;
                }
                else {
                  return 289;
                }
              }
              else {
                if (static::$polygon[2107]
                  ->isInside($lat, $lng)) {
                  return 289;
                }
                else {
                  return 87;
                }
              }
            }
            else {
              if (static::$polygon[2108]
                ->isInside($lat, $lng)) {
                return 87;
              }
              if (static::$polygon[2109]
                ->isInside($lat, $lng)) {
                return 87;
              }
              if (static::$polygon[2110]
                ->isInside($lat, $lng)) {
                return 87;
              }
              if (static::$polygon[2111]
                ->isInside($lat, $lng)) {
                return 87;
              }
              if (static::$polygon[2112]
                ->isInside($lat, $lng)) {
                return 87;
              }
              else {
                return 289;
              }
            }
          }
        }
      }
      else {
        if ($lng < 87.293533) {
          if ($lat < 58.52564) {
            if (static::$polygon[2113]
              ->isInside($lat, $lng)) {
              return 87;
            }
            else {
              return 95;
            }
          }
          else {
            if (static::$polygon[2114]
              ->isInside($lat, $lng)) {
              return 178;
            }
            if (static::$polygon[2115]
              ->isInside($lat, $lng)) {
              return 289;
            }
            else {
              return 95;
            }
          }
        }
        else {
          if ($lat < 58.52564) {
            if ($lng < 89.185585) {
              if ($lat < 57.263878) {
                if (static::$polygon[2116]
                  ->isInside($lat, $lng)) {
                  return 95;
                }
                if (static::$polygon[2117]
                  ->isInside($lat, $lng)) {
                  return 289;
                }
                else {
                  return 87;
                }
              }
              else {
                if (static::$polygon[2118]
                  ->isInside($lat, $lng)) {
                  return 289;
                }
                if (static::$polygon[2119]
                  ->isInside($lat, $lng)) {
                  return 289;
                }
                else {
                  return 95;
                }
              }
            }
            else {
              if (static::$polygon[2120]
                ->isInside($lat, $lng)) {
                return 87;
              }
              if (static::$polygon[2121]
                ->isInside($lat, $lng)) {
                return 95;
              }
              else {
                return 289;
              }
            }
          }
          else {
            if (static::$polygon[2122]
              ->isInside($lat, $lng)) {
              return 95;
            }
            else {
              return 289;
            }
          }
        }
      }
    }
  }
}