GET City?City={City}&APIIdentifier={APIIdentifier}&User={User}
The City service returns a valid ISO General Liability Territory code, based on City center
Request Information
Parameters
| Name | Description | Additional information |
|---|---|---|
| City | City name with two character US State code. Example: Atlanta, GA (Required) |
Define this parameter in the request URI. |
| APIIdentifier | An identifier assigned to MGAs by RSUI. Example: 5a6c7790-83bf-4b4c-88e1-7067413d3390 (Required) |
Define this parameter in the request URI. |
| User | User Name that matches with the APIIdentifier. Example: John Smith (Required) |
Define this parameter in the request URI. |
Response Information
The service may return more than one Territory code if multiple codes are found. (Error messages will be in the ApiMessages field)
Response body formats
application/json, text/json
Sample:
{
"city": "Atlanta",
"formattedAddress": "Atlanta, GA 30334, USA",
"zipCode": "30334",
"county": "Fulton",
"state": "GA",
"country": "US",
"latitude": "33.7476898",
"longitude": "-84.38804329999999",
"territories": [
"502"
],
"apiMessages": [
"Number of locations returned: 1"
]
}
text/html
Sample:
{"city":"Atlanta","formattedAddress":"Atlanta, GA 30334, USA","zipCode":"30334","county":"Fulton","state":"GA","country":"US","latitude":"33.7476898","longitude":"-84.38804329999999","territories":["502"],"apiMessages":["Number of locations returned: 1"]}
application/xml, text/xml
Sample:
<CityResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<APIMessages>
<string>Number of locations returned: 1</string>
</APIMessages>
<FormattedAddress>Atlanta, GA 30334, USA</FormattedAddress>
<City>Atlanta</City>
<ZipCode>30334</ZipCode>
<County>Fulton</County>
<State>GA</State>
<Country>US</Country>
<Latitude>33.7476898</Latitude>
<Longitude>-84.38804329999999</Longitude>
<Territories>
<string>502</string>
</Territories>
</CityResponse>
text/javascript, application/javascript, application/json-p
Sample:
({"city":"Atlanta","formattedAddress":"Atlanta, GA 30334, USA","zipCode":"30334","county":"Fulton","state":"GA","country":"US","latitude":"33.7476898","longitude":"-84.38804329999999","territories":["502"],"apiMessages":["Number of locations returned: 1"]});