Menu

GeoDB City API - Find Cities For Your Criteria | Wirefree Thought

header photo

Comments

There are currently no blog comments.

Now get nearby cities in a single call!

October 25, 2017

You can now easily find cities near a given city in a single call. Previously, you had to first get a city's details to obtain its latitude/longitude coordinates, then make a separate call to find all cities in that location. Now you can just do:

curl --get --include 'https://wft-geo-db.p.mashape.com/v1/geo/cities/{cityId}/nearbyCities?nearLocationRadius={nearLocationRadius}&nearLocationRadiusUnit={nearLocationRadiusUnit}&minPopulation={minPopulation}&offset=0&limit=500' \
    -H 'X-Mashape-Key: YOUR_API_KEY' \
    -H 'X-Mashape-Host: wft-geo-db.p.mashape.com'

Go here for more details.

Go Back

Comment