You are here

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

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

File

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

Class

GeoTimezone
Determine the time zone based on coordinates.

Namespace

Drupal\geotimezone

Code

private static function tryGetTzIndex37($lat, $lng) {
  if ($lng < 81.689583) {
    if ($lng < 69.01422100000001) {
      if ($lat < 40.080223) {
        if (static::$polygon[2123]
          ->isInside($lat, $lng)) {
          return 246;
        }
        else {
          return 208;
        }
      }
      else {
        if ($lat < 40.220528) {
          if (static::$polygon[2124]
            ->isInside($lat, $lng)) {
            return 208;
          }
          else {
            return 246;
          }
        }
        else {
          if (static::$polygon[2125]
            ->isInside($lat, $lng)) {
            return 347;
          }
          else {
            return 246;
          }
        }
      }
    }
    else {
      if ($lng < 73.132278) {
        if ($lat < 41.042252) {
          if ($lng < 70.73867) {
            if ($lat < 39.902557) {
              if (static::$polygon[2126]
                ->isInside($lat, $lng)) {
                return 230;
              }
              if (static::$polygon[2127]
                ->isInside($lat, $lng)) {
                return 230;
              }
              else {
                return 208;
              }
            }
            else {
              if ($lng < 69.876446) {
                if (static::$polygon[2128]
                  ->isInside($lat, $lng)) {
                  return 230;
                }
                if (static::$polygon[2129]
                  ->isInside($lat, $lng)) {
                  return 230;
                }
                if (static::$polygon[2130]
                  ->isInside($lat, $lng)) {
                  return 246;
                }
                else {
                  return 208;
                }
              }
              else {
                if (static::$polygon[2131]
                  ->isInside($lat, $lng)) {
                  return 230;
                }
                if (static::$polygon[2132]
                  ->isInside($lat, $lng)) {
                  return 246;
                }
                if (static::$polygon[2133]
                  ->isInside($lat, $lng)) {
                  return 246;
                }
                else {
                  return 208;
                }
              }
            }
          }
          else {
            if ($lat < 40.2285) {
              if ($lng < 70.971222) {
                if ($lat < 39.492379) {
                  if (static::$polygon[2134]
                    ->isInside($lat, $lng)) {
                    return 230;
                  }
                  else {
                    return 208;
                  }
                }
                else {
                  if (static::$polygon[2135]
                    ->isInside($lat, $lng)) {
                    return 208;
                  }
                  if (static::$polygon[2136]
                    ->isInside($lat, $lng)) {
                    return 246;
                  }
                  else {
                    return 230;
                  }
                }
              }
              else {
                if ($lat < 39.613609) {
                  if ($lng < 71.498947) {
                    if (static::$polygon[2137]
                      ->isInside($lat, $lng)) {
                      return 230;
                    }
                    else {
                      return 208;
                    }
                  }
                  else {
                    if (static::$polygon[2138]
                      ->isInside($lat, $lng)) {
                      return 230;
                    }
                    else {
                      return 208;
                    }
                  }
                }
                else {
                  if ($lng < 71.229332) {
                    if (static::$polygon[2139]
                      ->isInside($lat, $lng)) {
                      return 246;
                    }
                    else {
                      return 230;
                    }
                  }
                  else {
                    if (static::$polygon[2140]
                      ->isInside($lat, $lng)) {
                      return 246;
                    }
                    if (static::$polygon[2141]
                      ->isInside($lat, $lng)) {
                      return 246;
                    }
                    else {
                      return 230;
                    }
                  }
                }
              }
            }
            else {
              if ($lng < 71.664379) {
                if ($lng < 70.789665) {
                  if ($lat < 40.72514) {
                    if (static::$polygon[2142]
                      ->isInside($lat, $lng)) {
                      return 208;
                    }
                    else {
                      return 246;
                    }
                  }
                  else {
                    if (static::$polygon[2143]
                      ->isInside($lat, $lng)) {
                      return 208;
                    }
                    else {
                      return 246;
                    }
                  }
                }
                else {
                  if ($lng < 71.491906) {
                    if (static::$polygon[2144]
                      ->isInside($lat, $lng)) {
                      return 230;
                    }
                    else {
                      return 246;
                    }
                  }
                  else {
                    if (static::$polygon[2145]
                      ->isInside($lat, $lng)) {
                      return 230;
                    }
                    else {
                      return 246;
                    }
                  }
                }
              }
              else {
                if (static::$polygon[2146]
                  ->isInside($lat, $lng)) {
                  return 246;
                }
                else {
                  return 230;
                }
              }
            }
          }
        }
        else {
          if ($lat < 43.204445) {
            if ($lng < 71.07325) {
              if ($lat < 42.123348) {
                if ($lng < 70.043736) {
                  if (static::$polygon[2147]
                    ->isInside($lat, $lng)) {
                    return 246;
                  }
                  else {
                    return 347;
                  }
                }
                else {
                  if (static::$polygon[2148]
                    ->isInside($lat, $lng)) {
                    return 230;
                  }
                  if (static::$polygon[2149]
                    ->isInside($lat, $lng)) {
                    return 347;
                  }
                  if (static::$polygon[2150]
                    ->isInside($lat, $lng)) {
                    return 347;
                  }
                  else {
                    return 246;
                  }
                }
              }
              else {
                if (static::$polygon[2151]
                  ->isInside($lat, $lng)) {
                  return 230;
                }
                if (static::$polygon[2152]
                  ->isInside($lat, $lng)) {
                  return 230;
                }
                if (static::$polygon[2153]
                  ->isInside($lat, $lng)) {
                  return 246;
                }
                if (static::$polygon[2154]
                  ->isInside($lat, $lng)) {
                  return 246;
                }
                else {
                  return 347;
                }
              }
            }
            else {
              if ($lat < 42.123348) {
                if (static::$polygon[2155]
                  ->isInside($lat, $lng)) {
                  return 230;
                }
                else {
                  return 246;
                }
              }
              else {
                if (static::$polygon[2156]
                  ->isInside($lat, $lng)) {
                  return 246;
                }
                if (static::$polygon[2157]
                  ->isInside($lat, $lng)) {
                  return 347;
                }
                if (static::$polygon[2158]
                  ->isInside($lat, $lng)) {
                  return 347;
                }
                else {
                  return 230;
                }
              }
            }
          }
          else {
            return 347;
          }
        }
      }
      else {
        if ($lng < 77.41093100000001) {
          if ($lat < 41.925028) {
            if ($lng < 75.27160499999999) {
              if ($lat < 40.204223) {
                if ($lng < 74.20194100000001) {
                  if (static::$polygon[2159]
                    ->isInside($lat, $lng)) {
                    return 208;
                  }
                  if (static::$polygon[2160]
                    ->isInside($lat, $lng)) {
                    return 230;
                  }
                  else {
                    return 4;
                  }
                }
                else {
                  if (static::$polygon[2161]
                    ->isInside($lat, $lng)) {
                    return 208;
                  }
                  if (static::$polygon[2162]
                    ->isInside($lat, $lng)) {
                    return 230;
                  }
                  else {
                    return 4;
                  }
                }
              }
              else {
                if (static::$polygon[2163]
                  ->isInside($lat, $lng)) {
                  return 4;
                }
                else {
                  return 230;
                }
              }
            }
            else {
              if (static::$polygon[2164]
                ->isInside($lat, $lng)) {
                return 230;
              }
              else {
                return 4;
              }
            }
          }
          else {
            if (static::$polygon[2165]
              ->isInside($lat, $lng)) {
              return 347;
            }
            else {
              return 230;
            }
          }
        }
        else {
          if ($lat < 41.925028) {
            if (static::$polygon[2166]
              ->isInside($lat, $lng)) {
              return 230;
            }
            else {
              return 4;
            }
          }
          else {
            if ($lng < 79.550257) {
              if (static::$polygon[2167]
                ->isInside($lat, $lng)) {
                return 347;
              }
              else {
                return 230;
              }
            }
            else {
              if ($lat < 43.645833) {
                if ($lng < 80.61991999999999) {
                  if (static::$polygon[2168]
                    ->isInside($lat, $lng)) {
                    return 4;
                  }
                  if (static::$polygon[2169]
                    ->isInside($lat, $lng)) {
                    return 230;
                  }
                  else {
                    return 347;
                  }
                }
                else {
                  if (static::$polygon[2170]
                    ->isInside($lat, $lng)) {
                    return 347;
                  }
                  else {
                    return 4;
                  }
                }
              }
              else {
                if (static::$polygon[2171]
                  ->isInside($lat, $lng)) {
                  return 4;
                }
                else {
                  return 347;
                }
              }
            }
          }
        }
      }
    }
  }
  else {
    if ($lng < 84.960781) {
      if ($lat < 41.925028) {
        if (static::$polygon[2172]
          ->isInside($lat, $lng)) {
          return 406;
        }
        else {
          return 4;
        }
      }
      else {
        if ($lat < 43.645833) {
          if ($lng < 83.325182) {
            if (static::$polygon[2173]
              ->isInside($lat, $lng)) {
              return 406;
            }
            if (static::$polygon[2174]
              ->isInside($lat, $lng)) {
              return 406;
            }
            else {
              return 4;
            }
          }
          else {
            if (static::$polygon[2175]
              ->isInside($lat, $lng)) {
              return 4;
            }
            if (static::$polygon[2176]
              ->isInside($lat, $lng)) {
              return 4;
            }
            else {
              return 406;
            }
          }
        }
        else {
          if ($lng < 83.325182) {
            if (static::$polygon[2177]
              ->isInside($lat, $lng)) {
              return 347;
            }
            if (static::$polygon[2178]
              ->isInside($lat, $lng)) {
              return 406;
            }
            if (static::$polygon[2179]
              ->isInside($lat, $lng)) {
              return 406;
            }
            if (static::$polygon[2180]
              ->isInside($lat, $lng)) {
              return 406;
            }
            else {
              return 4;
            }
          }
          else {
            if (static::$polygon[2181]
              ->isInside($lat, $lng)) {
              return 4;
            }
            else {
              return 406;
            }
          }
        }
      }
    }
    else {
      if ($lng < 95.032709) {
        if (static::$polygon[2182]
          ->isInside($lat, $lng)) {
          return 121;
        }
        else {
          return 406;
        }
      }
      else {
        if ($lng < 100.068673) {
          if ($lat < 41.925028) {
            if (static::$polygon[2183]
              ->isInside($lat, $lng)) {
              return 406;
            }
            else {
              return 403;
            }
          }
          else {
            if (static::$polygon[2184]
              ->isInside($lat, $lng)) {
              return 123;
            }
            if (static::$polygon[2185]
              ->isInside($lat, $lng)) {
              return 403;
            }
            if (static::$polygon[2186]
              ->isInside($lat, $lng)) {
              return 406;
            }
            else {
              return 121;
            }
          }
        }
        else {
          if (static::$polygon[2187]
            ->isInside($lat, $lng)) {
            return 403;
          }
          else {
            return 123;
          }
        }
      }
    }
  }
}