You are here

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

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

File

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

Class

GeoTimezone
Determine the time zone based on coordinates.

Namespace

Drupal\geotimezone

Code

private static function tryGetTzIndex20($lat, $lng) {
  if ($lat < -28.572058) {
    if ($lat < -33.408588) {
      return 169;
    }
    else {
      if ($lng < 19.539615) {
        if ($lng < 16.478859) {
          if (static::$polygon[1095]
            ->isInside($lat, $lng)) {
            return 189;
          }
          else {
            return 169;
          }
        }
        else {
          if (static::$polygon[1096]
            ->isInside($lat, $lng)) {
            return 189;
          }
          else {
            return 169;
          }
        }
      }
      else {
        if ($lng < 25.950998) {
          return 169;
        }
        else {
          if ($lng < 29.15669) {
            if ($lat < -30.990323) {
              return 169;
            }
            else {
              if ($lng < 27.553844) {
                if (static::$polygon[1097]
                  ->isInside($lat, $lng)) {
                  return 339;
                }
                else {
                  return 169;
                }
              }
              else {
                if ($lat < -29.78119) {
                  if (static::$polygon[1098]
                    ->isInside($lat, $lng)) {
                    return 339;
                  }
                  else {
                    return 169;
                  }
                }
                else {
                  if (static::$polygon[1099]
                    ->isInside($lat, $lng)) {
                    return 339;
                  }
                  else {
                    return 169;
                  }
                }
              }
            }
          }
          else {
            if (static::$polygon[1100]
              ->isInside($lat, $lng)) {
              return 339;
            }
            if (static::$polygon[1101]
              ->isInside($lat, $lng)) {
              return 339;
            }
            else {
              return 169;
            }
          }
        }
      }
    }
  }
  else {
    if ($lng < 29.360781) {
      if ($lng < 17.403767) {
        if ($lat < -28.037775) {
          if ($lng < 17.083324) {
            if (static::$polygon[1102]
              ->isInside($lat, $lng)) {
              return 169;
            }
            else {
              return 189;
            }
          }
          else {
            if ($lat < -28.41106) {
              if (static::$polygon[1103]
                ->isInside($lat, $lng)) {
                return 189;
              }
              else {
                return 169;
              }
            }
            else {
              if (static::$polygon[1104]
                ->isInside($lat, $lng)) {
                return 189;
              }
              else {
                return 169;
              }
            }
          }
        }
        else {
          if ($lat < -26.993246) {
            return 189;
          }
          else {
            if ($lat < -16.959894) {
              if ($lng < 13.142432) {
                if (static::$polygon[1105]
                  ->isInside($lat, $lng)) {
                  return 299;
                }
                else {
                  return 189;
                }
              }
              else {
                if (static::$polygon[1106]
                  ->isInside($lat, $lng)) {
                  return 299;
                }
                else {
                  return 189;
                }
              }
            }
            else {
              return 299;
            }
          }
        }
      }
      else {
        if ($lat < -22.090446) {
          if ($lng < 23.382274) {
            if ($lat < -25.331252) {
              if ($lng < 20.39302) {
                if (static::$polygon[1107]
                  ->isInside($lat, $lng)) {
                  return 169;
                }
                else {
                  return 189;
                }
              }
              else {
                if ($lat < -26.951655) {
                  return 169;
                }
                else {
                  if ($lng < 21.887647) {
                    if (static::$polygon[1108]
                      ->isInside($lat, $lng)) {
                      return 12;
                    }
                    else {
                      return 169;
                    }
                  }
                  else {
                    if (static::$polygon[1109]
                      ->isInside($lat, $lng)) {
                      return 12;
                    }
                    else {
                      return 169;
                    }
                  }
                }
              }
            }
            else {
              if (static::$polygon[1110]
                ->isInside($lat, $lng)) {
                return 169;
              }
              if (static::$polygon[1111]
                ->isInside($lat, $lng)) {
                return 169;
              }
              if (static::$polygon[1112]
                ->isInside($lat, $lng)) {
                return 189;
              }
              else {
                return 12;
              }
            }
          }
          else {
            if ($lat < -25.331252) {
              if (static::$polygon[1113]
                ->isInside($lat, $lng)) {
                return 12;
              }
              else {
                return 169;
              }
            }
            else {
              if ($lng < 26.371527) {
                if (static::$polygon[1114]
                  ->isInside($lat, $lng)) {
                  return 169;
                }
                if (static::$polygon[1115]
                  ->isInside($lat, $lng)) {
                  return 169;
                }
                else {
                  return 12;
                }
              }
              else {
                if ($lat < -23.710849) {
                  if (static::$polygon[1116]
                    ->isInside($lat, $lng)) {
                    return 169;
                  }
                  else {
                    return 12;
                  }
                }
                else {
                  if ($lng < 27.866154) {
                    if (static::$polygon[1117]
                      ->isInside($lat, $lng)) {
                      return 169;
                    }
                    else {
                      return 12;
                    }
                  }
                  else {
                    if (static::$polygon[1118]
                      ->isInside($lat, $lng)) {
                      return 12;
                    }
                    if (static::$polygon[1119]
                      ->isInside($lat, $lng)) {
                      return 269;
                    }
                    else {
                      return 169;
                    }
                  }
                }
              }
            }
          }
        }
        else {
          if ($lng < 23.382274) {
            if ($lat < -18.849641) {
              if (static::$polygon[1120]
                ->isInside($lat, $lng)) {
                return 189;
              }
              else {
                return 12;
              }
            }
            else {
              if ($lng < 20.39302) {
                if (static::$polygon[1121]
                  ->isInside($lat, $lng)) {
                  return 299;
                }
                else {
                  return 189;
                }
              }
              else {
                if ($lat < -17.229238) {
                  if (static::$polygon[1122]
                    ->isInside($lat, $lng)) {
                    return 12;
                  }
                  if (static::$polygon[1123]
                    ->isInside($lat, $lng)) {
                    return 267;
                  }
                  if (static::$polygon[1124]
                    ->isInside($lat, $lng)) {
                    return 299;
                  }
                  else {
                    return 189;
                  }
                }
                else {
                  if (static::$polygon[1125]
                    ->isInside($lat, $lng)) {
                    return 299;
                  }
                  else {
                    return 267;
                  }
                }
              }
            }
          }
          else {
            if ($lat < -18.849641) {
              if ($lng < 26.371527) {
                if (static::$polygon[1126]
                  ->isInside($lat, $lng)) {
                  return 269;
                }
                else {
                  return 12;
                }
              }
              else {
                if ($lat < -20.470044) {
                  if (static::$polygon[1127]
                    ->isInside($lat, $lng)) {
                    return 269;
                  }
                  else {
                    return 12;
                  }
                }
                else {
                  if (static::$polygon[1128]
                    ->isInside($lat, $lng)) {
                    return 12;
                  }
                  else {
                    return 269;
                  }
                }
              }
            }
            else {
              if ($lng < 26.371527) {
                if ($lat < -17.229238) {
                  if ($lng < 24.8769) {
                    if ($lat < -18.039439) {
                      if (static::$polygon[1129]
                        ->isInside($lat, $lng)) {
                        return 189;
                      }
                      if (static::$polygon[1130]
                        ->isInside($lat, $lng)) {
                        return 189;
                      }
                      else {
                        return 12;
                      }
                    }
                    else {
                      if (static::$polygon[1131]
                        ->isInside($lat, $lng)) {
                        return 12;
                      }
                      if (static::$polygon[1132]
                        ->isInside($lat, $lng)) {
                        return 12;
                      }
                      if (static::$polygon[1133]
                        ->isInside($lat, $lng)) {
                        return 267;
                      }
                      if (static::$polygon[1134]
                        ->isInside($lat, $lng)) {
                        return 299;
                      }
                      else {
                        return 189;
                      }
                    }
                  }
                  else {
                    if ($lat < -18.039439) {
                      if (static::$polygon[1135]
                        ->isInside($lat, $lng)) {
                        return 12;
                      }
                      else {
                        return 269;
                      }
                    }
                    else {
                      if ($lng < 25.624214) {
                        if (static::$polygon[1136]
                          ->isInside($lat, $lng)) {
                          return 12;
                        }
                        if (static::$polygon[1137]
                          ->isInside($lat, $lng)) {
                          return 189;
                        }
                        if (static::$polygon[1138]
                          ->isInside($lat, $lng)) {
                          return 269;
                        }
                        else {
                          return 267;
                        }
                      }
                      else {
                        if (static::$polygon[1139]
                          ->isInside($lat, $lng)) {
                          return 267;
                        }
                        else {
                          return 269;
                        }
                      }
                    }
                  }
                }
                else {
                  return 267;
                }
              }
              else {
                if (static::$polygon[1140]
                  ->isInside($lat, $lng)) {
                  return 269;
                }
                else {
                  return 267;
                }
              }
            }
          }
        }
      }
    }
    else {
      if ($lat < -25.719648) {
        if ($lng < 32.895973) {
          if ($lng < 32.13726) {
            if (static::$polygon[1141]
              ->isInside($lat, $lng)) {
              return 169;
            }
            if (static::$polygon[1142]
              ->isInside($lat, $lng)) {
              return 169;
            }
            if (static::$polygon[1143]
              ->isInside($lat, $lng)) {
              return 364;
            }
            else {
              return 117;
            }
          }
          else {
            if ($lat < -26.830089) {
              if (static::$polygon[1144]
                ->isInside($lat, $lng)) {
                return 364;
              }
              else {
                return 169;
              }
            }
            else {
              return 364;
            }
          }
        }
        else {
          return 364;
        }
      }
      else {
        if ($lat < -20.664242) {
          if ($lat < -23.191945) {
            if (static::$polygon[1145]
              ->isInside($lat, $lng)) {
              return 169;
            }
            else {
              return 364;
            }
          }
          else {
            if (static::$polygon[1146]
              ->isInside($lat, $lng)) {
              return 169;
            }
            if (static::$polygon[1147]
              ->isInside($lat, $lng)) {
              return 364;
            }
            else {
              return 269;
            }
          }
        }
        else {
          if ($lat < -18.136539) {
            if (static::$polygon[1148]
              ->isInside($lat, $lng)) {
              return 364;
            }
            else {
              return 269;
            }
          }
          else {
            if ($lng < 31.533242) {
              if (static::$polygon[1149]
                ->isInside($lat, $lng)) {
                return 267;
              }
              if (static::$polygon[1150]
                ->isInside($lat, $lng)) {
                return 364;
              }
              else {
                return 269;
              }
            }
            else {
              if (static::$polygon[1151]
                ->isInside($lat, $lng)) {
                return 269;
              }
              else {
                return 364;
              }
            }
          }
        }
      }
    }
  }
}