GET api/states/{state}/cities/{city}?radius={radius}

This method will bring all the cities that lies within a given radius range of a city

Request Information

URI Parameters

NameDescriptionTypeAdditional information
state

the state name

string

Required

city

the city name

string

Required

radius

and the radius

decimal number

Required

Body Parameters

None.

Response Information

Resource Description

all the cities that falls within the radius of the given city

Collection of 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": "96729881-b78e-4da3-a488-98d36a057bf7",
    "Zip": 2,
    "State": "sample string 3",
    "City": "sample string 4",
    "Longitude": 5.1,
    "Latitude": 6.1
  },
  {
    "Id": "96729881-b78e-4da3-a488-98d36a057bf7",
    "Zip": 2,
    "State": "sample string 3",
    "City": "sample string 4",
    "Longitude": 5.1,
    "Latitude": 6.1
  }
]

application/xml, text/xml

Sample:
<ArrayOfGeo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GeoAPI.Models">
  <Geo>
    <City>sample string 4</City>
    <Id>96729881-b78e-4da3-a488-98d36a057bf7</Id>
    <Latitude>6.1</Latitude>
    <Longitude>5.1</Longitude>
    <State>sample string 3</State>
    <Zip>2</Zip>
  </Geo>
  <Geo>
    <City>sample string 4</City>
    <Id>96729881-b78e-4da3-a488-98d36a057bf7</Id>
    <Latitude>6.1</Latitude>
    <Longitude>5.1</Longitude>
    <State>sample string 3</State>
    <Zip>2</Zip>
  </Geo>
</ArrayOfGeo>