FindAddressCandidatesResults
200 OK
{
"spatialReference": {
"wkid": <spatialRefence>,
"latestWkid": <spatialRefence>
},
"candidates": [
{
"address": <address>,
"location": {
"x": ,
"y":
},
"score": <score>,
"attributes": {},
"extent": {
"xmin": ,
"ymin": ,
"xmax": ,
"ymax":
}
}
]
}GeocodeAddressesResults
200 OK
{
"spatialReference": {
"wkid": 4326,
"latestWkid": 4326
},
"locations": [
{
"address": "58 Brewer Street, London, England, W1F 9TL",
"location": {
"x": -0.13606997199997295,
"y": 51.511369982000076
},
"score": 100,
"attributes": {
"ResultID": 3,
"Loc_name": "World",
"Status": "M",
"Score": 100,
"Match_addr": "58 Brewer Street, London, England, W1F 9TL",
"LongLabel": "58 Brewer Street, London, England, W1F 9TL, GBR",
"ShortLabel": "58 Brewer Street",
"Addr_type": "PointAddress",
"Type": "",
"PlaceName": "",
"Place_addr": "58 Brewer Street, London, England, W1F 9TL",
"Phone": "",
"URL": "",
"Rank": 20,
"AddBldg": "",
"AddNum": "58",
"AddNumFrom": "",
"AddNumTo": "",
"AddRange": "",
"Side": "L",
"StPreDir": "",
"StPreType": "",
"StName": "Brewer",
"StType": "Street",
"StDir": "",
"BldgType": "",
"BldgName": "",
"LevelType": "",
"LevelName": "",
"UnitType": "",
"UnitName": "",
"SubAddr": "",
"StAddr": "58 Brewer Street",
"Block": "",
"Sector": "",
"Nbrhd": "",
"District": "",
"City": "London",
"MetroArea": "",
"Subregion": "London",
"Region": "England",
"RegionAbbr": "ENG",
"Territory": "",
"Zone": "Soho",
"Postal": "W1F 9TL",
"PostalExt": "TL",
"Country": "GBR",
"LangCode": "ENG",
"Distance": 0,
"X": -0.13598464435711721,
"Y": 51.511325892764766,
"DisplayX": -0.13606997213142336,
"DisplayY": 51.511369981575456,
"Xmin": -0.13706997213142336,
"Xmax": -0.13506997213142335,
"Ymin": 51.510369981575458,
"Ymax": 51.512369981575453,
"ExInfo": ""
}
},
{
"address": "Buckingham Palace",
"location": {
"x": -0.14309999999994716,
"y": 51.500810000000058
},
"score": 100,
"attributes": {
"ResultID": 1,
"Loc_name": "World",
"Status": "T",
"Score": 100,
"Match_addr": "Buckingham Palace",
"LongLabel": "Buckingham Palace, London, England, SW1A 1, GBR",
"ShortLabel": "Buckingham Palace",
"Addr_type": "POI",
"Type": "Historical Monument",
"PlaceName": "Buckingham Palace",
"Place_addr": "London, England, SW1A 1",
"Phone": "",
"URL": "",
"Rank": 2.5,
"AddBldg": "",
"AddNum": "",
"AddNumFrom": "",
"AddNumTo": "",
"AddRange": "",
"Side": "",
"StPreDir": "",
"StPreType": "",
"StName": "",
"StType": "",
"StDir": "",
"BldgType": "",
"BldgName": "",
"LevelType": "",
"LevelName": "",
"UnitType": "",
"UnitName": "",
"SubAddr": "",
"StAddr": "",
"Block": "",
"Sector": "",
"Nbrhd": "",
"District": "",
"City": "London",
"MetroArea": "",
"Subregion": "London",
"Region": "England",
"RegionAbbr": "ENG",
"Territory": "",
"Zone": "St James's",
"Postal": "SW1A 1",
"PostalExt": "",
"Country": "GBR",
"LangCode": "ENG",
"Distance": 0,
"X": -0.14113000129708159,
"Y": 51.501639976052296,
"DisplayX": -0.14309999999994716,
"DisplayY": 51.500810000000058,
"Xmin": -0.14809999999994716,
"Xmax": -0.13809999999994715,
"Ymin": 51.495810000000056,
"Ymax": 51.505810000000061,
"ExInfo": ""
}
},
{
"address": "Bernardi's",
"location": {
"x": -0.16121999999995751,
"y": 51.514410000000055
},
"score": 100,
"attributes": {
"ResultID": 2,
"Loc_name": "World",
"Status": "M",
"Score": 100,
"Match_addr": "Bernardi's",
"LongLabel": "Bernardi's, 62 Seymour Street, London, England, W1H 7, GBR",
"ShortLabel": "Bernardi's",
"Addr_type": "POI",
"Type": "Italian Food",
"PlaceName": "Bernardi's",
"Place_addr": "62 Seymour Street, London, England, W1H 7",
"Phone": "+44 20-38267940",
"URL": "http://bernardis.co.uk/",
"Rank": 19,
"AddBldg": "",
"AddNum": "62",
"AddNumFrom": "",
"AddNumTo": "",
"AddRange": "",
"Side": "L",
"StPreDir": "",
"StPreType": "",
"StName": "Seymour",
"StType": "Street",
"StDir": "",
"BldgType": "",
"BldgName": "",
"LevelType": "",
"LevelName": "",
"UnitType": "",
"UnitName": "",
"SubAddr": "",
"StAddr": "62 Seymour Street",
"Block": "",
"Sector": "",
"Nbrhd": "",
"District": "",
"City": "London",
"MetroArea": "",
"Subregion": "London",
"Region": "England",
"RegionAbbr": "ENG",
"Territory": "",
"Zone": "Marylebone",
"Postal": "W1H 7",
"PostalExt": "",
"Country": "GBR",
"LangCode": "ENG",
"Distance": 0,
"X": -0.1611700438570435,
"Y": 51.514300029430416,
"DisplayX": -0.16121999999995751,
"DisplayY": 51.514410000000055,
"Xmin": -0.16621999999995751,
"Xmax": -0.1562199999999575,
"Ymin": 51.509410000000052,
"Ymax": 51.519410000000057,
"ExInfo": ""
}
}
]
}SuggestResults
200 OK
{
"suggestions": [
{
"text": "New York, NY, USA",
"magicKey": "dHA9MCNsb2M9NTI0NDIwMCNsbmc9MzQjcGw9NjUxOTExI2xicz0xNDoyNzAzMTgwMQ==",
"isCollection": false
},
{
"text": "New York, USA",
"magicKey": "dHA9MCNsb2M9NDk1NjY3MyNsbmc9MzQjcGw9NjAxNzMxI2xicz0xNDoyNzAzMTgwMQ==",
"isCollection": false
},
{
"text": "New York international Airport, New York, NY, USA",
"magicKey": "dHA9MCNsb2M9MTQ1MDQ3NzIjbG5nPTM0I3BsPTIyNTY3NTIjbGJzPTE0OjI3MDM0MDAz",
"isCollection": false
},
{
"text": "New York Stad, NY, USA",
"magicKey": "dHA9MCNsb2M9MTQ1MDU5ODYjbG5nPTM0I3BsPTIyNjcyMTAjbGJzPTE0OjI3MDMzNjM5",
"isCollection": false
},
{
"text": "New York Mills, NY, USA",
"magicKey": "dHA9MCNsb2M9NDk5ODg0OSNsbmc9MzQjcGw9NjA4NjM1I2xicz0xNDoyNzAzMzE4Mg==",
"isCollection": false
}
]
}Error
{
"error": {
"code": 498,
"message": "Invalid Token",
"details": []
}
}No matches returned
When the service cannot find any matches for a request, the JSON responses below are returned.
findAddressCandidates
{
"spatialReference": {
"wkid": 4326,
"latestWkid": 4326
},
"candidates": [
]
}suggest
{
"suggestions": [
]
}reverseGeocode
{
"error": {
"code": 400,
"message": "Cannot perform query. Invalid query parameters.",
"details": [
"Unable to find address for the specified location."
]
}
}geocodeAddresses
{
"address": "",
"score": 0,
"attributes": {
"ResultID": 2,
"Loc_name": "World",
"Status": "U",
"Score": 0,
"Match_addr": "",
"LongLabel": "",
"ShortLabel": "",
"Addr_type": "",
"Type": "",
"PlaceName": "",
"Place_addr": "",
"Phone": "",
"URL": "",
"Rank": 0,
"AddBldg": "",
"AddNum": "",
"AddNumFrom": "",
"AddNumTo": "",
"AddRange": "",
"Side": "",
"StPreDir": "",
"StPreType": "",
"StName": "",
"StType": "",
"StDir": "",
"BldgType": "",
"BldgName": "",
"LevelType": "",
"LevelName": "",
"UnitType": "",
"UnitName": "",
"SubAddr": "",
"StAddr": "",
"Block": "",
"Sector": "",
"Nbrhd": "",
"District": "",
"City": "",
"MetroArea": "",
"Subregion": "",
"Region": "",
"RegionAbbr": "",
"Territory": "",
"Zone": "",
"Postal": "",
"PostalExt": "",
"Country": "",
"CntryName": "",
"LangCode": "",
"Distance": 0,
"X": 0.0,
"Y": 0.0,
"DisplayX": 0.0,
"DisplayY": 0.0,
"Xmin": 0.0,
"Xmax": 0.0,
"Ymin": 0.0,
"Ymax": 0.0,
"ExInfo": "",
"StrucType": "",
"StrucDet": ""
}
}Response for unsupported category value
If an invalid category value is passed in a request, a responseInfo message is returned by the service which contains information about the invalid category value. If a list of category values is passed in the request, and one or more of the values are invalid, the response will include any candidates which match the request parameters in addition to the responseInfo object describing the invalid category values. This is a change to the way invalid category values are handled. Previously, the response consisted of a generic error message without any matching candidates or information about invalid categories.
Response for invalid category value in find Address Candidates request
{
"spatialReference": {
"wkid": 4326,
"latestWkid": 4326
},
"candidates": [
],
"responseInfo": {
"message": "Invalid category value '<category>' in request"
}
}Response for invalid category value in suggest request
{
"suggestions": [
],
"responseInfo": {
"message": "Invalid category value '<category>' in request"
}
}Batch geocoding invalid responses
Invalid input file format
{
"status": "FAILED",
"logs": "Failed to process input file. Please check that the file is a valid CSV or ZIP file."
}Invalid service input field
{
"status": "FAILED",
"logs": "Wrong field mapping. Locator has no input field <invalid field>"
}Invalid CSV field
{
"status": "FAILED",
"logs": "Wrong field mapping. CSV file has no column <invalid field>"
}Bad CSV header
{
"status": "FAILED",
"logs": "Can't read csv header"
}Response objects
The following table describes all of the fields that can be returned in a response from the ArcGIS Geocoding service, as well as the request types for which the fields are returned.
| Field | Description | Supported request types |
|---|---|---|
| The spatial reference of the output match location coordinates as specified by the |
|
| The complete matching address returned for Example: 380 New York St, Redlands, California, 92373 |
|
| The full street address of a location, including house number and street name. Example: 380 New York St |
|
| The point coordinates of the output match location as specified by the x and y properties. The spatial reference of the x and y coordinates is defined by the For |
|
| This is only returned for |
|
| The name of the locator used to return a particular match result. |
|
| Indicates whether a geocode request results in a match, a tie, or is unmatched. The possible values are the following:
|
|
| A number from 1–100 indicating the degree to which the input tokens in a geocoding request match the address components in a candidate record. A score of 100 represents a perfect match, while lower scores represent decreasing match accuracy. |
|
| The complete address returned for the geocode request. The format is based on address standards for the country in which the address is located. |
|
| A longer version of the |
|
| A shortened version of the |
|
| The match level for a geocode request. Supported match levels vary in different countries. The possible values are the following:
|
|
| The feature type for results returned by a search. The |
|
| The formal name of a geocode match candidate. Example: Paris or Starbucks. |
|
| The full street address of a place, including street, city, and region. Example: 275 Columbus Ave, New York, New York. |
|
| The primary phone number of a place of interest (POI). Example: Knott's Berry Farm, |
|
| The URL of the primary website for a place of interest (POI). Example: the University of Georgia, |
|
| A floating-point number value indicating the priority of a result relative to other results with the same name. For example, there are cities in France and Texas named Paris. Paris, France, has a greater population than Paris, Texas, so it has a higher rank. The |
|
| The name of a building. Example: Empire State Building. |
|
| The alphanumeric value that represents the portion of an address typically known as a house number or building number. Example: in the address 380 New York Street, This value is returned for |
|
| A value representing the beginning number of a street address range. It is relative to direction of feature digitization and is not always the smallest number in the range. This value is provided for |
|
| A value representing the ending number of a street address range. It is relative to direction of feature digitization and is not always the largest number in the range. This value is provided for |
|
| The full house number range for the street segment that an address lies on, in the format AddNumFrom-AddNumTo. For example, the |
|
| The side of the street where an address resides relative to the direction of feature digitization. This value is not relative to the direction of travel along the street. Possible values are |
|
| An address element defining the direction of a street and occurs before the primary street name. Example: North in North Main Street. |
|
| An address element defining the leading type of a street. Example: the Spanish term Avenida in Avenida Central or the French term Rue in Rue Lapin. |
|
| An address element defining the primary name of a street. Example: Main in North Main Street. |
|
| An address element defining the trailing type of a street. Example: Street in Main Street. |
|
| An address element defining the direction of a street, which occurs after the primary street name. Example: North in Main Street North. |
|
| The name or number of a building subunit. Example: A in building A. |
|
| The classification of a building subunit. Examples are building, hangar, and tower. |
|
| The classification of a floor subunit. Examples are floor, level, department, and wing. |
|
| The name or number of a floor subunit. Example: 3 in level 3. |
|
| The classification of a unit subunit. Examples are unit, apartment, flat, office, and suite. |
|
| The name or number of a unit subunit. Example: 2B in apartment 2B. |
|
| The full subunit value for a candidate with |
|
| The street address of a place, without city and region. Example: 275 Columbus Ave. |
|
| The name of the block-level administrative division for a candidate. The |
|
| The name of the sector-level administrative division for a candidate. The |
|
| The name of the neighborhood-level administrative division for a candidate. The |
|
| The name of the neighborhood-level administrative division for a candidate. The |
|
| The name of the district-level administrative division for a candidate. Such as a subdivision of a city. |
|
| The name of the city-level administrative division for a candidate. The |
|
| The name of the metropolitan area-level administrative division for a candidate. It is an urban area consisting of a large city and the smaller cities surrounding it. The value can potentially intersect multiple subregions or regions. An example is Kolkata Metropolitan Area in India. |
|
| The name of the subregion-level administrative division for a candidate. The |
|
| The name of the region-level administrative division for a candidate. It is a subdivision of a country or territory. It is typically the largest administrative area for a country if the |
|
| The abbreviated region name. The |
|
| The name of the territory-level administrative division for a candidate. It is a subdivision of country. It is not commonly used. The Sudeste macroregion of Brazil, which encompasses the states of Espírito Santo, Minas Gerais, Rio de Janeiro and São Paulo, is an example. |
|
| An alphanumeric address element defining the primary postal code. Example: V7M 2B4 for a Canadian postal code and 92374 for a United States postal code. |
|
| An alphanumeric address element defining the postal code extension. Example: 8100 in USA postal code 92373-8110. |
|
| A 3-character code for a country. Example: Canada is CAN. A list of supported countries and codes is available in Geocode data coverage. This field is returned by the |
|
| A 3-character code for a country. Example: Canada is CAN. A list of supported countries and codes is available in Geocode data coverage. |
|
| The full country name for an address candidate. Example: 日本 (Japan). The name may be in the same language as the input address or in the language specified by the |
|
| A 3-character language code representing the language of the address. Example: ENG is English. |
|
| The physical distance in meters from a candidate to a specified location. The |
|
| The primary x-coordinate of an address returned by the ArcGIS Geocoding service in spatial reference WGS84 (WKID 4326). |
|
| The primary y-coordinate of an address returned by the ArcGIS Geocoding service in spatial reference WGS84 (WKID 4326). |
|
| The x-coordinate that was submitted in a |
|
| The y-coordinate that was submitted in a |
|
| The display x-coordinate of an address returned by the ArcGIS Geocoding service in spatial reference WGS84 (WKID 4326). For most types of matches, the |
|
| The display y-coordinate of an address returned by the ArcGIS Geocoding service in spatial reference WGS84 (WKID 4326). For most types of matches, the |
|
| The minimum x-coordinate for the display extent of a feature returned by the ArcGIS Geocoding service. The |
|
| The maximum x-coordinate for the display extent of a feature returned by the ArcGIS Geocoding service. The |
|
| The minimum y-coordinate for the display extent of a feature returned by the ArcGIS Geocoding service. The |
|
| The maximum y-coordinate for the display extent of a feature returned by the ArcGIS Geocoding service. The |
|
| A collection of strings from the input that could not be matched to any part of an address and were used to score or penalize the result. |
|
| The minimum bounding rectangle of the output match feature as specified by the |
|
| A designation for a structure or building that describes its primary usage. These are the possible values:
Only geocoding candidates that have |
|
| Related to For addresses with
For addresses with
Only geocoding candidates that have |
|