You are here

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

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

File

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

Class

GeoTimezone
Determine the time zone based on coordinates.

Namespace

Drupal\geotimezone

Code

private static function tryGetTzIndex35($lat, $lng) {
  if ($lng < 92.48635899999999) {
    if ($lat < 24.867944) {
      if ($lng < 89.429982) {
        if ($lng < 88.775749) {
          if ($lat < 23.983778) {
            if (static::$polygon[1999]
              ->isInside($lat, $lng)) {
              return 150;
            }
            else {
              return 371;
            }
          }
          else {
            if (static::$polygon[2000]
              ->isInside($lat, $lng)) {
              return 371;
            }
            else {
              return 150;
            }
          }
        }
        else {
          return 150;
        }
      }
      else {
        if ($lng < 90.06253100000001) {
          return 150;
        }
        else {
          if (static::$polygon[2001]
            ->isInside($lat, $lng)) {
            return 371;
          }
          else {
            return 150;
          }
        }
      }
    }
    else {
      if ($lat < 26.461971) {
        if ($lng < 90.563018) {
          if ($lng < 89.601347) {
            if ($lat < 25.664958) {
              if (static::$polygon[2002]
                ->isInside($lat, $lng)) {
                return 371;
              }
              else {
                return 150;
              }
            }
            else {
              if ($lng < 89.12051200000001) {
                if (static::$polygon[2003]
                  ->isInside($lat, $lng)) {
                  return 371;
                }
                if (static::$polygon[2004]
                  ->isInside($lat, $lng)) {
                  return 371;
                }
                if (static::$polygon[2005]
                  ->isInside($lat, $lng)) {
                  return 371;
                }
                else {
                  return 150;
                }
              }
              else {
                if (static::$polygon[2006]
                  ->isInside($lat, $lng)) {
                  return 371;
                }
                else {
                  return 150;
                }
              }
            }
          }
          else {
            if (static::$polygon[2007]
              ->isInside($lat, $lng)) {
              return 371;
            }
            if (static::$polygon[2008]
              ->isInside($lat, $lng)) {
              return 371;
            }
            if (static::$polygon[2009]
              ->isInside($lat, $lng)) {
              return 371;
            }
            else {
              return 150;
            }
          }
        }
        else {
          if (static::$polygon[2010]
            ->isInside($lat, $lng)) {
            return 371;
          }
          else {
            return 150;
          }
        }
      }
      else {
        if ($lat < 32.472694) {
          if ($lat < 29.467333) {
            if ($lng < 90.563018) {
              if ($lat < 27.964652) {
                if ($lng < 89.601347) {
                  if (static::$polygon[2011]
                    ->isInside($lat, $lng)) {
                    return 371;
                  }
                  if (static::$polygon[2012]
                    ->isInside($lat, $lng)) {
                    return 406;
                  }
                  else {
                    return 62;
                  }
                }
                else {
                  if (static::$polygon[2013]
                    ->isInside($lat, $lng)) {
                    return 371;
                  }
                  else {
                    return 62;
                  }
                }
              }
              else {
                if (static::$polygon[2014]
                  ->isInside($lat, $lng)) {
                  return 62;
                }
                if (static::$polygon[2015]
                  ->isInside($lat, $lng)) {
                  return 371;
                }
                else {
                  return 406;
                }
              }
            }
            else {
              if ($lat < 27.964652) {
                if ($lng < 91.524688) {
                  if (static::$polygon[2016]
                    ->isInside($lat, $lng)) {
                    return 371;
                  }
                  else {
                    return 62;
                  }
                }
                else {
                  if ($lat < 27.213312) {
                    if (static::$polygon[2017]
                      ->isInside($lat, $lng)) {
                      return 62;
                    }
                    else {
                      return 371;
                    }
                  }
                  else {
                    if (static::$polygon[2018]
                      ->isInside($lat, $lng)) {
                      return 62;
                    }
                    if (static::$polygon[2019]
                      ->isInside($lat, $lng)) {
                      return 406;
                    }
                    else {
                      return 371;
                    }
                  }
                }
              }
              else {
                if (static::$polygon[2020]
                  ->isInside($lat, $lng)) {
                  return 62;
                }
                else {
                  return 406;
                }
              }
            }
          }
          else {
            return 406;
          }
        }
        else {
          return 406;
        }
      }
    }
  }
  else {
    if ($lng < 94.10888300000001) {
      if ($lat < 24.079779) {
        if (static::$polygon[2021]
          ->isInside($lat, $lng)) {
          return 40;
        }
        else {
          return 371;
        }
      }
      else {
        if (static::$polygon[2022]
          ->isInside($lat, $lng)) {
          return 406;
        }
        else {
          return 371;
        }
      }
    }
    else {
      if ($lat < 31.176903) {
        if ($lng < 99.60675999999999) {
          if ($lat < 27.523645) {
            if ($lng < 96.857821) {
              if ($lat < 25.697017) {
                if (static::$polygon[2023]
                  ->isInside($lat, $lng)) {
                  return 371;
                }
                else {
                  return 40;
                }
              }
              else {
                if (static::$polygon[2024]
                  ->isInside($lat, $lng)) {
                  return 40;
                }
                else {
                  return 371;
                }
              }
            }
            else {
              if ($lat < 25.697017) {
                if ($lng < 98.232291) {
                  if (static::$polygon[2025]
                    ->isInside($lat, $lng)) {
                    return 403;
                  }
                  else {
                    return 40;
                  }
                }
                else {
                  if (static::$polygon[2026]
                    ->isInside($lat, $lng)) {
                    return 403;
                  }
                  else {
                    return 40;
                  }
                }
              }
              else {
                if (static::$polygon[2027]
                  ->isInside($lat, $lng)) {
                  return 371;
                }
                if (static::$polygon[2028]
                  ->isInside($lat, $lng)) {
                  return 403;
                }
                else {
                  return 40;
                }
              }
            }
          }
          else {
            if ($lng < 96.857821) {
              if ($lat < 29.350274) {
                if ($lng < 95.483352) {
                  if (static::$polygon[2029]
                    ->isInside($lat, $lng)) {
                    return 406;
                  }
                  else {
                    return 371;
                  }
                }
                else {
                  if ($lat < 28.43696) {
                    if (static::$polygon[2030]
                      ->isInside($lat, $lng)) {
                      return 406;
                    }
                    if (static::$polygon[2031]
                      ->isInside($lat, $lng)) {
                      return 406;
                    }
                    else {
                      return 371;
                    }
                  }
                  else {
                    if (static::$polygon[2032]
                      ->isInside($lat, $lng)) {
                      return 371;
                    }
                    if (static::$polygon[2033]
                      ->isInside($lat, $lng)) {
                      return 371;
                    }
                    else {
                      return 406;
                    }
                  }
                }
              }
              else {
                if (static::$polygon[2034]
                  ->isInside($lat, $lng)) {
                  return 371;
                }
                else {
                  return 406;
                }
              }
            }
            else {
              if ($lat < 29.350274) {
                if ($lng < 98.232291) {
                  if ($lat < 28.43696) {
                    if ($lng < 97.545056) {
                      if (static::$polygon[2035]
                        ->isInside($lat, $lng)) {
                        return 371;
                      }
                      if (static::$polygon[2036]
                        ->isInside($lat, $lng)) {
                        return 406;
                      }
                      else {
                        return 40;
                      }
                    }
                    else {
                      if (static::$polygon[2037]
                        ->isInside($lat, $lng)) {
                        return 403;
                      }
                      if (static::$polygon[2038]
                        ->isInside($lat, $lng)) {
                        return 403;
                      }
                      if (static::$polygon[2039]
                        ->isInside($lat, $lng)) {
                        return 406;
                      }
                      else {
                        return 40;
                      }
                    }
                  }
                  else {
                    if (static::$polygon[2040]
                      ->isInside($lat, $lng)) {
                      return 40;
                    }
                    else {
                      return 406;
                    }
                  }
                }
                else {
                  if (static::$polygon[2041]
                    ->isInside($lat, $lng)) {
                    return 40;
                  }
                  if (static::$polygon[2042]
                    ->isInside($lat, $lng)) {
                    return 406;
                  }
                  if (static::$polygon[2043]
                    ->isInside($lat, $lng)) {
                    return 406;
                  }
                  else {
                    return 403;
                  }
                }
              }
              else {
                if (static::$polygon[2044]
                  ->isInside($lat, $lng)) {
                  return 406;
                }
                else {
                  return 403;
                }
              }
            }
          }
        }
        else {
          return 403;
        }
      }
      else {
        if ($lng < 99.60675999999999) {
          if ($lat < 34.83016) {
            if ($lng < 96.857821) {
              return 406;
            }
            else {
              if ($lat < 33.003531) {
                if (static::$polygon[2045]
                  ->isInside($lat, $lng)) {
                  return 406;
                }
                else {
                  return 403;
                }
              }
              else {
                if ($lng < 98.232291) {
                  if (static::$polygon[2046]
                    ->isInside($lat, $lng)) {
                    return 403;
                  }
                  else {
                    return 406;
                  }
                }
                else {
                  if (static::$polygon[2047]
                    ->isInside($lat, $lng)) {
                    return 406;
                  }
                  else {
                    return 403;
                  }
                }
              }
            }
          }
          else {
            if ($lng < 96.857821) {
              return 406;
            }
            else {
              if ($lat < 36.656789) {
                if (static::$polygon[2048]
                  ->isInside($lat, $lng)) {
                  return 406;
                }
                else {
                  return 403;
                }
              }
              else {
                if (static::$polygon[2049]
                  ->isInside($lat, $lng)) {
                  return 406;
                }
                else {
                  return 403;
                }
              }
            }
          }
        }
        else {
          if (static::$polygon[2050]
            ->isInside($lat, $lng)) {
            return 406;
          }
          if (static::$polygon[2051]
            ->isInside($lat, $lng)) {
            return 406;
          }
          else {
            return 403;
          }
        }
      }
    }
  }
}