v1

latestSwagger 2.0Creative Commons Attribution 3.02026-07-14263452.9 KB
Geo

Get city distance

Get distance from the given city

get/geo/cities/{cityId}/distance

Path parameters

cityIdstring required

A city id (either native 'id' or 'wikiDataId')

Query parameters

toCityIdstring required

Distance to this city

distanceUnitstring

The unit of distance: MI | KM

Response

A decimal distance (in miles or kilometers)

datanumber double

The distance in units as set by the distanceUnit param (defaults to miles)

Example response

{
  "data": 6707.9
}