/1.0/city/{geoId} Resource

GET /1.0/city/{geoId}

Get a city by its unique geoId.

Request Parameters
name type description
geoId path the city's geoId
Response Body
media type data type description
application/json city (JSON) the matching city
application/xml city (XML)

Example

Request
GET /1.0/city/{geoId}
Accept: application/json

              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
{
  "id" : "5357527",
  "name" : "Hollywood",
  "stateCode" : "CA",
  "state" : "California",
  "coords" : {
    "long" : -118.3267434,
    "lat" : 34.0983425
  },
  "country" : {
    "code" : "US",
    "name" : "United States"
  }
}