You are here

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

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

File

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

Class

GeoTimezone
Determine the time zone based on coordinates.

Namespace

Drupal\geotimezone

Code

private static function tryGetTzIndex38($lat, $lng) {
  if ($lat < 23.870388) {
    if ($lng < 90.25221999999999) {
      if ($lng < 88.803276) {
        if ($lng < 68.778862) {
          return 371;
        }
        else {
          if (static::$polygon[2188]
            ->isInside($lat, $lng)) {
            return 371;
          }
          if (static::$polygon[2189]
            ->isInside($lat, $lng)) {
            return 371;
          }
          else {
            return 150;
          }
        }
      }
      else {
        return 150;
      }
    }
    else {
      if ($lng < 90.759941) {
        return 150;
      }
      else {
        if ($lng < 93.43755299999999) {
          if ($lng < 92.333679) {
            if ($lng < 91.259092) {
              if (static::$polygon[2190]
                ->isInside($lat, $lng)) {
                return 371;
              }
              else {
                return 150;
              }
            }
            else {
              if (static::$polygon[2191]
                ->isInside($lat, $lng)) {
                return 150;
              }
              else {
                return 371;
              }
            }
          }
          else {
            if ($lat < 23.680471) {
              if (static::$polygon[2192]
                ->isInside($lat, $lng)) {
                return 40;
              }
              else {
                return 371;
              }
            }
            else {
              if (static::$polygon[2193]
                ->isInside($lat, $lng)) {
                return 40;
              }
              else {
                return 371;
              }
            }
          }
        }
        else {
          if ($lng < 94.16203) {
            if (static::$polygon[2194]
              ->isInside($lat, $lng)) {
              return 371;
            }
            else {
              return 40;
            }
          }
          else {
            if ($lng < 97.68340600000001) {
              if (static::$polygon[2195]
                ->isInside($lat, $lng)) {
                return 403;
              }
              else {
                return 40;
              }
            }
            else {
              if (static::$polygon[2196]
                ->isInside($lat, $lng)) {
                return 403;
              }
              else {
                return 40;
              }
            }
          }
        }
      }
    }
  }
  else {
    if ($lat < 38.483418) {
      if ($lng < 88.63967700000001) {
        return static::tryGetTzIndex34($lat, $lng);
      }
      else {
        return static::tryGetTzIndex35($lat, $lng);
      }
    }
    else {
      if ($lat < 45.366638) {
        return static::tryGetTzIndex37($lat, $lng);
      }
      else {
        if ($lng < 91.077637) {
          if ($lat < 50.487915) {
            if ($lng < 87.312668) {
              if ($lng < 77.938805) {
                return 347;
              }
              else {
                if ($lng < 82.625736) {
                  if (static::$polygon[2197]
                    ->isInside($lat, $lng)) {
                    return 406;
                  }
                  else {
                    return 347;
                  }
                }
                else {
                  if ($lat < 47.927277) {
                    if (static::$polygon[2198]
                      ->isInside($lat, $lng)) {
                      return 406;
                    }
                    else {
                      return 347;
                    }
                  }
                  else {
                    if ($lng < 84.969202) {
                      if (static::$polygon[2199]
                        ->isInside($lat, $lng)) {
                        return 379;
                      }
                      else {
                        return 347;
                      }
                    }
                    else {
                      if ($lat < 49.207596) {
                        if (static::$polygon[2200]
                          ->isInside($lat, $lng)) {
                          return 379;
                        }
                        if (static::$polygon[2201]
                          ->isInside($lat, $lng)) {
                          return 406;
                        }
                        else {
                          return 347;
                        }
                      }
                      else {
                        if (static::$polygon[2202]
                          ->isInside($lat, $lng)) {
                          return 347;
                        }
                        else {
                          return 379;
                        }
                      }
                    }
                  }
                }
              }
            }
            else {
              if ($lat < 46.563946) {
                if (static::$polygon[2203]
                  ->isInside($lat, $lng)) {
                  return 121;
                }
                else {
                  return 406;
                }
              }
              else {
                if ($lat < 48.52593) {
                  if (static::$polygon[2204]
                    ->isInside($lat, $lng)) {
                    return 406;
                  }
                  else {
                    return 121;
                  }
                }
                else {
                  if ($lng < 89.19515199999999) {
                    if ($lat < 49.506923) {
                      if ($lng < 88.25391) {
                        if (static::$polygon[2205]
                          ->isInside($lat, $lng)) {
                          return 379;
                        }
                        if (static::$polygon[2206]
                          ->isInside($lat, $lng)) {
                          return 406;
                        }
                        if (static::$polygon[2207]
                          ->isInside($lat, $lng)) {
                          return 406;
                        }
                        else {
                          return 121;
                        }
                      }
                      else {
                        if (static::$polygon[2208]
                          ->isInside($lat, $lng)) {
                          return 379;
                        }
                        if (static::$polygon[2209]
                          ->isInside($lat, $lng)) {
                          return 379;
                        }
                        if (static::$polygon[2210]
                          ->isInside($lat, $lng)) {
                          return 379;
                        }
                        if (static::$polygon[2211]
                          ->isInside($lat, $lng)) {
                          return 379;
                        }
                        else {
                          return 121;
                        }
                      }
                    }
                    else {
                      if (static::$polygon[2212]
                        ->isInside($lat, $lng)) {
                        return 121;
                      }
                      if (static::$polygon[2213]
                        ->isInside($lat, $lng)) {
                        return 121;
                      }
                      if (static::$polygon[2214]
                        ->isInside($lat, $lng)) {
                        return 121;
                      }
                      if (static::$polygon[2215]
                        ->isInside($lat, $lng)) {
                        return 121;
                      }
                      if (static::$polygon[2216]
                        ->isInside($lat, $lng)) {
                        return 121;
                      }
                      else {
                        return 379;
                      }
                    }
                  }
                  else {
                    if ($lat < 49.506923) {
                      return 121;
                    }
                    else {
                      if ($lng < 90.13639499999999) {
                        if (static::$polygon[2217]
                          ->isInside($lat, $lng)) {
                          return 121;
                        }
                        if (static::$polygon[2218]
                          ->isInside($lat, $lng)) {
                          return 289;
                        }
                        else {
                          return 379;
                        }
                      }
                      else {
                        if (static::$polygon[2219]
                          ->isInside($lat, $lng)) {
                          return 121;
                        }
                        else {
                          return 289;
                        }
                      }
                    }
                  }
                }
              }
            }
          }
          else {
            if ($lat < 61.049164) {
              return static::tryGetTzIndex36($lat, $lng);
            }
            else {
              if ($lng < 72.250832) {
                return 178;
              }
              else {
                if ($lng < 81.66423399999999) {
                  return 178;
                }
                else {
                  if ($lng < 86.370935) {
                    if ($lat < 63.659122) {
                      if ($lng < 84.017585) {
                        return 178;
                      }
                      else {
                        if ($lat < 62.354143) {
                          if (static::$polygon[2220]
                            ->isInside($lat, $lng)) {
                            return 289;
                          }
                          else {
                            return 178;
                          }
                        }
                        else {
                          if (static::$polygon[2221]
                            ->isInside($lat, $lng)) {
                            return 289;
                          }
                          else {
                            return 178;
                          }
                        }
                      }
                    }
                    else {
                      if ($lng < 84.017585) {
                        if (static::$polygon[2222]
                          ->isInside($lat, $lng)) {
                          return 289;
                        }
                        else {
                          return 178;
                        }
                      }
                      else {
                        if (static::$polygon[2223]
                          ->isInside($lat, $lng)) {
                          return 178;
                        }
                        else {
                          return 289;
                        }
                      }
                    }
                  }
                  else {
                    return 289;
                  }
                }
              }
            }
          }
        }
        else {
          if ($lat < 59.320831) {
            if ($lng < 98.091137) {
              if ($lat < 52.343735) {
                if ($lng < 94.58438700000001) {
                  if (static::$polygon[2224]
                    ->isInside($lat, $lng)) {
                    return 289;
                  }
                  else {
                    return 121;
                  }
                }
                else {
                  if ($lat < 48.855186) {
                    if (static::$polygon[2225]
                      ->isInside($lat, $lng)) {
                      return 123;
                    }
                    if (static::$polygon[2226]
                      ->isInside($lat, $lng)) {
                      return 123;
                    }
                    else {
                      return 121;
                    }
                  }
                  else {
                    if ($lng < 96.337762) {
                      if (static::$polygon[2227]
                        ->isInside($lat, $lng)) {
                        return 121;
                      }
                      else {
                        return 289;
                      }
                    }
                    else {
                      if (static::$polygon[2228]
                        ->isInside($lat, $lng)) {
                        return 121;
                      }
                      if (static::$polygon[2229]
                        ->isInside($lat, $lng)) {
                        return 123;
                      }
                      if (static::$polygon[2230]
                        ->isInside($lat, $lng)) {
                        return 123;
                      }
                      else {
                        return 289;
                      }
                    }
                  }
                }
              }
              else {
                if ($lng < 94.58438700000001) {
                  return 289;
                }
                else {
                  if ($lat < 55.832283) {
                    if ($lng < 96.337762) {
                      if (static::$polygon[2231]
                        ->isInside($lat, $lng)) {
                        return 144;
                      }
                      else {
                        return 289;
                      }
                    }
                    else {
                      if (static::$polygon[2232]
                        ->isInside($lat, $lng)) {
                        return 144;
                      }
                      else {
                        return 289;
                      }
                    }
                  }
                  else {
                    if (static::$polygon[2233]
                      ->isInside($lat, $lng)) {
                      return 144;
                    }
                    else {
                      return 289;
                    }
                  }
                }
              }
            }
            else {
              if ($lat < 52.343735) {
                if ($lng < 101.597887) {
                  if ($lat < 48.855186) {
                    if (static::$polygon[2234]
                      ->isInside($lat, $lng)) {
                      return 123;
                    }
                    else {
                      return 121;
                    }
                  }
                  else {
                    if ($lng < 99.84451199999999) {
                      if (static::$polygon[2235]
                        ->isInside($lat, $lng)) {
                        return 121;
                      }
                      if (static::$polygon[2236]
                        ->isInside($lat, $lng)) {
                        return 144;
                      }
                      if (static::$polygon[2237]
                        ->isInside($lat, $lng)) {
                        return 289;
                      }
                      if (static::$polygon[2238]
                        ->isInside($lat, $lng)) {
                        return 289;
                      }
                      else {
                        return 123;
                      }
                    }
                    else {
                      if (static::$polygon[2239]
                        ->isInside($lat, $lng)) {
                        return 123;
                      }
                      else {
                        return 144;
                      }
                    }
                  }
                }
                else {
                  if (static::$polygon[2240]
                    ->isInside($lat, $lng)) {
                    return 144;
                  }
                  else {
                    return 123;
                  }
                }
              }
              else {
                if ($lng < 101.597887) {
                  if ($lat < 55.832283) {
                    if (static::$polygon[2241]
                      ->isInside($lat, $lng)) {
                      return 289;
                    }
                    else {
                      return 144;
                    }
                  }
                  else {
                    if (static::$polygon[2242]
                      ->isInside($lat, $lng)) {
                      return 289;
                    }
                    else {
                      return 144;
                    }
                  }
                }
                else {
                  if ($lat < 55.832283) {
                    return 144;
                  }
                  else {
                    if ($lng < 103.351262) {
                      if (static::$polygon[2243]
                        ->isInside($lat, $lng)) {
                        return 289;
                      }
                      if (static::$polygon[2244]
                        ->isInside($lat, $lng)) {
                        return 289;
                      }
                      else {
                        return 144;
                      }
                    }
                    else {
                      if (static::$polygon[2245]
                        ->isInside($lat, $lng)) {
                        return 144;
                      }
                      else {
                        return 289;
                      }
                    }
                  }
                }
              }
            }
          }
          else {
            if ($lat < 59.849081) {
              if (static::$polygon[2246]
                ->isInside($lat, $lng)) {
                return 144;
              }
              else {
                return 289;
              }
            }
            else {
              if (static::$polygon[2247]
                ->isInside($lat, $lng)) {
                return 144;
              }
              else {
                return 289;
              }
            }
          }
        }
      }
    }
  }
}