Geocoding service—ArcGIS REST APIs | ArcGIS Developers (original) (raw)

RequestResponse


GET geocode-api.arcgis.com/arcgis/rest/services/World/GeocodeServer/findAddressCandidates?f=pjson&singleLine=1600 Pennsylvania Ave NW, DC&token=<ACCESS_TOKEN> HTTP/1.1
{
 "spatialReference": {
  "wkid": 4326,
  "latestWkid": 4326
 },
 "candidates": [
  {
   "address": "1600 Pennsylvania Ave NW, Washington, District of Columbia, 20500",
   "location": {
    "x": -77.036546998209,
    "y": 38.897675107651
   },
   "score": 100,
   "attributes": {
    "Loc_name": "World",
    "Status": "M",
    "Score": 100,
    "Match_addr": "1600 Pennsylvania Ave NW, Washington, District of Columbia, 20500",
    "LongLabel": "1600 Pennsylvania Ave NW, Washington, DC, 20500, USA",
    "ShortLabel": "1600 Pennsylvania Ave NW",
    "Addr_type": "PointAddress",
    "Type": "",
    "PlaceName": "",
    "Place_addr": "1600 Pennsylvania Ave NW, Washington, District of Columbia, 20500",
    "Phone": "",
    "URL": "",
    "Rank": 20,
    "AddBldg": "",
    "AddNum": "1600",
    "AddNumFrom": "",
    "AddNumTo": "",
    "AddRange": "",
    "Side": "",
    "StPreDir": "",
    "StPreType": "",
    "StName": "Pennsylvania",
    "StType": "Ave",
    "StDir": "NW",
    "BldgType": "",
    "BldgName": "",
    "LevelType": "",
    "LevelName": "",
    "UnitType": "",
    "UnitName": "",
    "SubAddr": "",
    "StAddr": "1600 Pennsylvania Ave NW",
    "Block": "",
    "Sector": "",
    "Nbrhd": "",
    "District": "",
    "City": "Washington",
    "MetroArea": "",
    "Subregion": "District of Columbia",
    "Region": "District of Columbia",
    "RegionAbbr": "DC",
    "Territory": "",
    "Zone": "",
    "Postal": "20500",
    "PostalExt": "",
    "Country": "USA",
    "CntryName": "United States",
    "LangCode": "ENG",
    "Distance": 0,
    "X": -77.036546998209,
    "Y": 38.897675107651,
    "DisplayX": -77.036546998209,
    "DisplayY": 38.897675107651,
    "Xmin": -77.037546998209,
    "Xmax": -77.035546998209,
    "Ymin": 38.896675107651,
    "Ymax": 38.898675107651,
    "ExInfo": ""
   },
   "extent": {
    "xmin": -77.037546998209,
    "ymin": 38.896675107651,
    "xmax": -77.035546998209,
    "ymax": 38.898675107651
   }
  }
 ]
}