GeoDB Cities GraphQL

ÜCRETSİZ PREMIUM
Verified
GraphQL
Taraf Michael Mogley | Güncelleyen 4 days ago | Data
Popülerlik

9.1 / 10

Gecikme

41ms

Hizmet Düzeyi

100%

Health Check

N/A

README

Welcome to GeoDB Cities GraphQL

This service provides basic info about cities, counties, regions, and countries throughout the world. It allows you to constrain and sort the data in various ways, retrieving just what’s relevant to your use-case.

Try This

Get details on New York City (Q60) and its nearby suburbs. (Just paste the below query verbatim into the RapidAPI POST graphQL endpoint.

{
  populatedPlace(id:"Q60") {
    name
    population
    latitude
    longitude
    nearbyPopulatedPlaces(radius:10, distanceUnit:MI, types:["CITY"], first:10) {
      totalCount
      edges {
        node {
          id
          name
          population
          distance
        }
      }
      pageInfo {
        startCursor
        endCursor
        hasNextPage
      }
    }
  }
}

Features

  • Filter cities by name prefix, countries, location, time-zone, and minimum population (currently over 273,000 cities and counties).
  • Find cities near a city or location.
  • Display results in multiple languages (currently English, French, German, Italian, Portuguese, Russian, and Spanish).
  • Sort results by name, country code, elevation, and population - or any combination of these.
  • Get city details, including GPS location, time-zone, population, elevation above sea level, and the current time (factors in daylight savings).
  • Get all country regions, states, and provinces.
  • Get all cities in a given region.
  • Get all countries supporting a currency.
  • WikiData Integration
  • Cloud-based load-balanced infrastructure.
  • Data periodically refreshed from GeoNames and WikiData.

Possible Use-Cases

  • Get user’s current city based on their GPS location.
  • Autocomplete a city, region, or country name as the user types.
  • Autopopulate a list of regions based on the user’s selected country.
  • Autopopulate a list of cities based on the user’s selected country region.
  • Display the flag of the selected country.
  • Integrate with WikiData to implement exotic use-cases such as getting a city’s tourist attractions.

Docs

Takipçi Sayısı: 3
Kaynaklar:
Ürün Web Sitesi Kullanım şartları
API Üreticisi:
Rapid account: Michael Mogley
Michael Mogley
wirefreethought
API'yi Değerlendirme İçin Giriş Yapın
Değerlendirme: 5 - Oy Sayısı: 1