You are here

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

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

File

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

Class

GeoTimezone
Determine the time zone based on coordinates.

Namespace

Drupal\geotimezone

Code

private static function tryGetTzIndex30($lat, $lng) {
  if ($lat < 11.098028) {
    if ($lat < 9.890555000000001) {
      if ($lat < 8.278499999999999) {
        return 270;
      }
      else {
        if ($lng < 98.502388) {
          if ($lng < 98.175087) {
            if ($lng < 97.912476) {
              return 270;
            }
            else {
              return 40;
            }
          }
          else {
            return 270;
          }
        }
        else {
          if ($lng < 100.258641) {
            return 270;
          }
          else {
            return 24;
          }
        }
      }
    }
    else {
      if ($lng < 98.47077899999999) {
        return 40;
      }
      else {
        if ($lng < 102.955833) {
          if ($lng < 98.63072200000001) {
            if ($lat < 10.036747) {
              if ($lng < 98.503304) {
                if ($lat < 9.908666999999999) {
                  return 270;
                }
                else {
                  return 40;
                }
              }
              else {
                if ($lng < 98.551109) {
                  return 40;
                }
                else {
                  if (static::$polygon[1685]
                    ->isInside($lat, $lng)) {
                    return 40;
                  }
                  else {
                    return 270;
                  }
                }
              }
            }
            else {
              return 40;
            }
          }
          else {
            if ($lng < 99.519447) {
              if ($lng < 99.22341900000001) {
                if ($lat < 10.941639) {
                  if (static::$polygon[1686]
                    ->isInside($lat, $lng)) {
                    return 40;
                  }
                  if (static::$polygon[1687]
                    ->isInside($lat, $lng)) {
                    return 40;
                  }
                  else {
                    return 270;
                  }
                }
                else {
                  if ($lng < 98.707916) {
                    return 40;
                  }
                  else {
                    if (static::$polygon[1688]
                      ->isInside($lat, $lng)) {
                      return 270;
                    }
                    else {
                      return 40;
                    }
                  }
                }
              }
              else {
                return 270;
              }
            }
            else {
              if ($lng < 99.855583) {
                return 270;
              }
              else {
                return 251;
              }
            }
          }
        }
        else {
          if ($lng < 103.821335) {
            return 251;
          }
          else {
            if ($lat < 10.323584) {
              return 24;
            }
            else {
              if ($lng < 104.078867) {
                if ($lat < 10.498389) {
                  return 24;
                }
                else {
                  return 251;
                }
              }
              else {
                if ($lng < 104.334137) {
                  return 251;
                }
                else {
                  if (static::$polygon[1689]
                    ->isInside($lat, $lng)) {
                    return 251;
                  }
                  else {
                    return 24;
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  else {
    if ($lat < 12.230139) {
      if ($lng < 98.68141900000001) {
        return 40;
      }
      else {
        if ($lng < 102.919525) {
          if ($lng < 100.020752) {
            if ($lng < 98.690804) {
              return 40;
            }
            else {
              if (static::$polygon[1690]
                ->isInside($lat, $lng)) {
                return 270;
              }
              else {
                return 40;
              }
            }
          }
          else {
            if ($lng < 102.610809) {
              return 270;
            }
            else {
              if (static::$polygon[1691]
                ->isInside($lat, $lng)) {
                return 251;
              }
              else {
                return 270;
              }
            }
          }
        }
        else {
          return 251;
        }
      }
    }
    else {
      if ($lat < 12.6145) {
        if ($lng < 98.61322) {
          return 40;
        }
        else {
          if ($lng < 100.97293) {
            if ($lng < 99.497317) {
              if (static::$polygon[1692]
                ->isInside($lat, $lng)) {
                return 270;
              }
              else {
                return 40;
              }
            }
            else {
              return 270;
            }
          }
          else {
            if ($lng < 102.244331) {
              return 270;
            }
            else {
              if (static::$polygon[1693]
                ->isInside($lat, $lng)) {
                return 251;
              }
              else {
                return 270;
              }
            }
          }
        }
      }
      else {
        if ($lng < 98.22494500000001) {
          if ($lat < 14.4145) {
            return 40;
          }
          else {
            if ($lat < 16.337936) {
              if ($lng < 97.88825199999999) {
                return 40;
              }
              else {
                if ($lat < 15.008137) {
                  if (static::$polygon[1694]
                    ->isInside($lat, $lng)) {
                    return 270;
                  }
                  else {
                    return 40;
                  }
                }
                else {
                  if (static::$polygon[1695]
                    ->isInside($lat, $lng)) {
                    return 270;
                  }
                  else {
                    return 40;
                  }
                }
              }
            }
            else {
              if ($lat < 17.826316) {
                if ($lat < 16.375928) {
                  return 40;
                }
                else {
                  if (static::$polygon[1696]
                    ->isInside($lat, $lng)) {
                    return 270;
                  }
                  else {
                    return 40;
                  }
                }
              }
              else {
                if ($lat < 18.056516) {
                  if (static::$polygon[1697]
                    ->isInside($lat, $lng)) {
                    return 40;
                  }
                  else {
                    return 270;
                  }
                }
                else {
                  if ($lat < 18.916257) {
                    if (static::$polygon[1698]
                      ->isInside($lat, $lng)) {
                      return 40;
                    }
                    else {
                      return 270;
                    }
                  }
                  else {
                    if (static::$polygon[1699]
                      ->isInside($lat, $lng)) {
                      return 270;
                    }
                    else {
                      return 40;
                    }
                  }
                }
              }
            }
          }
        }
        else {
          if ($lng < 99.39415099999999) {
            if ($lat < 12.907416) {
              if ($lng < 98.69963799999999) {
                return 40;
              }
              else {
                if (static::$polygon[1700]
                  ->isInside($lat, $lng)) {
                  return 270;
                }
                else {
                  return 40;
                }
              }
            }
            else {
              if ($lat < 14.976789) {
                if ($lng < 98.335114) {
                  if ($lat < 13.213333) {
                    return 40;
                  }
                  else {
                    if (static::$polygon[1701]
                      ->isInside($lat, $lng)) {
                      return 270;
                    }
                    else {
                      return 40;
                    }
                  }
                }
                else {
                  if ($lat < 12.936528) {
                    if ($lng < 98.55650300000001) {
                      return 40;
                    }
                    else {
                      if (static::$polygon[1702]
                        ->isInside($lat, $lng)) {
                        return 270;
                      }
                      else {
                        return 40;
                      }
                    }
                  }
                  else {
                    if (static::$polygon[1703]
                      ->isInside($lat, $lng)) {
                      return 270;
                    }
                    else {
                      return 40;
                    }
                  }
                }
              }
              else {
                if ($lat < 15.059563) {
                  if (static::$polygon[1704]
                    ->isInside($lat, $lng)) {
                    return 40;
                  }
                  else {
                    return 270;
                  }
                }
                else {
                  if ($lat < 17.224167) {
                    if ($lat < 16.141865) {
                      if (static::$polygon[1705]
                        ->isInside($lat, $lng)) {
                        return 40;
                      }
                      else {
                        return 270;
                      }
                    }
                    else {
                      if (static::$polygon[1706]
                        ->isInside($lat, $lng)) {
                        return 40;
                      }
                      else {
                        return 270;
                      }
                    }
                  }
                  else {
                    if (static::$polygon[1707]
                      ->isInside($lat, $lng)) {
                      return 40;
                    }
                    else {
                      return 270;
                    }
                  }
                }
              }
            }
          }
          else {
            if ($lat < 14.4395) {
              if ($lng < 100.822113) {
                return 270;
              }
              else {
                if ($lng < 103.662552) {
                  if (static::$polygon[1708]
                    ->isInside($lat, $lng)) {
                    return 251;
                  }
                  else {
                    return 270;
                  }
                }
                else {
                  if (static::$polygon[1709]
                    ->isInside($lat, $lng)) {
                    return 270;
                  }
                  else {
                    return 251;
                  }
                }
              }
            }
            else {
              if ($lat < 17.542611) {
                if (static::$polygon[1710]
                  ->isInside($lat, $lng)) {
                  return 265;
                }
                if (static::$polygon[1711]
                  ->isInside($lat, $lng)) {
                  return 265;
                }
                else {
                  return 270;
                }
              }
              else {
                if ($lng < 102.249394) {
                  if ($lat < 19.094166) {
                    if ($lng < 100.821773) {
                      return 270;
                    }
                    else {
                      if ($lat < 18.318388) {
                        if (static::$polygon[1712]
                          ->isInside($lat, $lng)) {
                          return 265;
                        }
                        else {
                          return 270;
                        }
                      }
                      else {
                        if (static::$polygon[1713]
                          ->isInside($lat, $lng)) {
                          return 270;
                        }
                        else {
                          return 265;
                        }
                      }
                    }
                  }
                  else {
                    if ($lng < 100.821773) {
                      if (static::$polygon[1714]
                        ->isInside($lat, $lng)) {
                        return 40;
                      }
                      if (static::$polygon[1715]
                        ->isInside($lat, $lng)) {
                        return 265;
                      }
                      else {
                        return 270;
                      }
                    }
                    else {
                      if (static::$polygon[1716]
                        ->isInside($lat, $lng)) {
                        return 270;
                      }
                      else {
                        return 265;
                      }
                    }
                  }
                }
                else {
                  if ($lat < 19.094166) {
                    if ($lng < 103.677016) {
                      if (static::$polygon[1717]
                        ->isInside($lat, $lng)) {
                        return 270;
                      }
                      else {
                        return 265;
                      }
                    }
                    else {
                      if (static::$polygon[1718]
                        ->isInside($lat, $lng)) {
                        return 24;
                      }
                      if (static::$polygon[1719]
                        ->isInside($lat, $lng)) {
                        return 270;
                      }
                      else {
                        return 265;
                      }
                    }
                  }
                  else {
                    if ($lng < 103.677016) {
                      return 265;
                    }
                    else {
                      if ($lat < 19.869944) {
                        if (static::$polygon[1720]
                          ->isInside($lat, $lng)) {
                          return 265;
                        }
                        else {
                          return 24;
                        }
                      }
                      else {
                        if (static::$polygon[1721]
                          ->isInside($lat, $lng)) {
                          return 265;
                        }
                        else {
                          return 24;
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}