GeoDB Cities GraphQL

免费增值
Verified
GraphQL
通过 Michael Mogley | 已更新 5 दिन पहले | Data
人气

9.1 / 10

延迟

41ms

服务等级

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

关注者:3
资源:
产品网站 使用条款
API 创建者:
Rapid account: Michael Mogley
Michael Mogley
wirefreethought
登录并给 API 打分
打分:5 - 投票:1