GET api/cities/{city}?radius={radius}&unique={unique}

This call will retrieve all cities that fall within a radius range of a given city.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
city

The city name

string

Required

radius

The radius

decimal number

Required

unique

Set this value to true if you want unique city names

boolean

Default value is False

Body Parameters

None.

Response Information

Resource Description

All cities that fall within the given radius range of the given city

Geo
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

Zip

integer

None.

State

string

None.

City

string

None.

Longitude

decimal number

None.

Latitude

decimal number

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": "84463443-c3c4-4b00-b376-04a4c0bb4120",
  "Zip": 2,
  "State": "sample string 3",
  "City": "sample string 4",
  "Longitude": 5.1,
  "Latitude": 6.1
}

application/xml, text/xml

Sample:
<Geo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GeoAPI.Models">
  <City>sample string 4</City>
  <Id>84463443-c3c4-4b00-b376-04a4c0bb4120</Id>
  <Latitude>6.1</Latitude>
  <Longitude>5.1</Longitude>
  <State>sample string 3</State>
  <Zip>2</Zip>
</Geo>