GET api/cities/{city}

This call will retireve all cities in the U.S with a given name

Request Information

URI Parameters

NameDescriptionTypeAdditional information
city

the name of the city you're looking for

string

Required

Body Parameters

None.

Response Information

Resource Description

a list of all the cities that matches the given name

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": "cf992588-b333-48c8-9ff2-c8faef87b4a2",
  "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>cf992588-b333-48c8-9ff2-c8faef87b4a2</Id>
  <Latitude>6.1</Latitude>
  <Longitude>5.1</Longitude>
  <State>sample string 3</State>
  <Zip>2</Zip>
</Geo>