Geocoder API Developer's Guide

Addresses at Ten Locations

Retrieve the address details of ten locations in a single request

The body of the HTTP POST request contains the coordinates and optional radius in the prox parameter as well as an optional numeric identifier in the id parameter as plain text, one line per pair of coordinates. The identifier associates each result with the corresponding input. If the user does not provide an identifier, the system creates one starting with 0.

You have to specify the content type for the request as plain/text or application/xml.

Example header when using wget
--header "Content-Type:application/xml; charset=utf8"

Request

The following POST request uses the parameter mode to define the action taken.

https://reverse.geocoder.cit.api.here.com/6.2/multi-reversegeocode.json
  ?app_id={YOUR_APP_ID}
  &app_code={YOUR_APP_CODE}
  &mode=retrieveAreas

POST body:

id=0001&prox=52.5309,13.3845,50
id=0002&prox=50.1618,8.5334,50
id=0003&prox=40.7296,-73.9868,50
id=0004&prox=47.6098,-122.3425,50
id=0005&prox=-22.9804,-43.1897,50
id=0006&prox=-8.4943,115.2533,50
id=0007&prox=28.6338,77.2191,50
id=0008&prox=-33.9204,18.4208,50
id=0009&prox=21.0027,-89.6224,50
id=0010&prox=24.6607,46.712,50

Response

The response to the request contains the following information blocks:
  • metadata about the information used in determining the addresses
  • information about each address, including metadata
{
  "Response": {
  "MetaInfo": {
    "Timestamp": "2015-03-18T11:51:14.730+0000"
  },
  "Item": [
    {
    "ItemId": 1,
    "Result": [
      {
      "Relevance": 1,
      "Distance": 10,
      "MatchLevel": "houseNumber",
      "MatchQuality": {
        "Country": 1,
        "State": 1,
        "County": 1,
        "City": 1,
        "District": 1,
        "Street": [
        1
        ],
        "HouseNumber": 1,
        "PostalCode": 1
      },
      "MatchType": "pointAddress",
      "Location": {
        "LocationId": "LINK_931447246_R_PA_218224814_S",
        "LocationType": "address",
        "DisplayPosition": {
        "Latitude": 52.53081,
        "Longitude": 13.38449
        },
        "NavigationPosition": [
        {
          "Latitude": 52.53093,
          "Longitude": 13.38439
        }
        ],
        "MapView": {
        "TopLeft": {
          "Latitude": 52.5319342,
          "Longitude": 13.3826421
        },
        "BottomRight": {
          "Latitude": 52.5296858,
          "Longitude": 13.3863379
        }
        },
        "Address": {
        "Label": "Invalidenstraße 115, 10115 Berlin, Deutschland",
        "Country": "DEU",
        "State": "Berlin",
        "County": "Berlin",
        "City": "Berlin",
        "District": "Mitte",
        "Street": "Invalidenstraße",
        "HouseNumber": "115",
        "PostalCode": "10115",
        "AdditionalData": [
          {
          "value": "Deutschland",
          "key": "CountryName"
          },
          {
          "value": "Berlin",
          "key": "StateName"
          },
          {
          "value": "Berlin",
          "key": "CountyName"
          }
        ]
        },
        "MapReference": {
        "ReferenceId": "931447246",
        "MapId": "UWAM151W4",
        "MapVersion": "Q1/2015",
        "Spot": 0.94,
        "SideOfStreet": "right",
        "CountryId": "20147700",
        "StateId": "20187401",
        "CountyId": "20187402",
        "CityId": "20187403",
        "DistrictId": "20187417"
        }
      }
      },
      {
      "Relevance": 1,
      "Distance": 10.4,
      "MatchLevel": "houseNumber",
      "MatchQuality": {
        "Country": 1,
        "State": 1,
        "County": 1,
        "City": 1,
        "District": 1,
        "Street": [
        1
        ],
        "HouseNumber": 1,
        "PostalCode": 1
      },
      "MatchType": "pointAddress",
      "Location": {
        "LocationId": "LINK_931447247_R_PA_218224762_S",
        "LocationType": "address",
        "DisplayPosition": {
        "Latitude": 52.53086,
        "Longitude": 13.38469
        },
        "NavigationPosition": [
        {
          "Latitude": 52.53098,
          "Longitude": 13.38458
        }
        ],
        "MapView": {
        "TopLeft": {
          "Latitude": 52.5319842,
          "Longitude": 13.3828421
        },
        "BottomRight": {
          "Latitude": 52.5297358,
          "Longitude": 13.3865379
        }
        },
        "Address": {
        "Label": "Invalidenstraße 116, 10115 Berlin, Deutschland",
        "Country": "DEU",
        "State": "Berlin",
        "County": "Berlin",
        "City": "Berlin",
        "District": "Mitte",
        "Street": "Invalidenstraße",
        "HouseNumber": "116",
        "PostalCode": "10115",
        "AdditionalData": [
          {
          "value": "Deutschland",
          "key": "CountryName"
          },
          {
          "value": "Berlin",
          "key": "StateName"
          },
          {
          "value": "Berlin",
          "key": "CountyName"
          }
        ]
        },
        "MapReference": {
        "ReferenceId": "931447247",
        "MapId": "UWAM151W4",
        "MapVersion": "Q1/2015",
        "Spot": 0.31,
        "SideOfStreet": "right",
        "CountryId": "20147700",
        "StateId": "20187401",
        "CountyId": "20187402",
        "CityId": "20187403",
        "DistrictId": "20187417"
        }
      }
      },
      {
      "Relevance": 1,
      "Distance": 41,
      "MatchLevel": "houseNumber",
      "MatchQuality": {
        "Country": 1,
        "State": 1,
        "County": 1,
        "City": 1,
        "District": 1,
        "Street": [
        1
        ],
        "HouseNumber": 1,
        "PostalCode": 1
      },
      "MatchType": "pointAddress",
      "Location": {
        "LocationId": "LINK_780236879_R_PA_201613525_S",
        "LocationType": "address",
        "DisplayPosition": {
        "Latitude": 52.53045,
        "Longitude": 13.38554
        },
        "NavigationPosition": [
        {
          "Latitude": 52.5311,
          "Longitude": 13.38501
        }
        ],
        "MapView": {
        "TopLeft": {
          "Latitude": 52.5315742,
          "Longitude": 13.3836921
        },
        "BottomRight": {
          "Latitude": 52.5293258,
          "Longitude": 13.3873879
        }
        },
        "Address": {
        "Label": "Invalidenstraße 118, 10115 Berlin, Deutschland",
        "Country": "DEU",
        "State": "Berlin",
        "County": "Berlin",
        "City": "Berlin",
        "District": "Mitte",
        "Street": "Invalidenstraße",
        "HouseNumber": "118",
        "PostalCode": "10115",
        "AdditionalData": [
          {
          "value": "Deutschland",
          "key": "CountryName"
          },
          {
          "value": "Berlin",
          "key": "StateName"
          },
          {
          "value": "Berlin",
          "key": "CountyName"
          }
        ]
        },
        "MapReference": {
        "ReferenceId": "780236879",
        "MapId": "UWAM151W4",
        "MapVersion": "Q1/2015",
        "Spot": 0.36,
        "SideOfStreet": "right",
        "CountryId": "20147700",
        "StateId": "20187401",
        "CountyId": "20187402",
        "CityId": "20187403",
        "DistrictId": "20187417"
        }
      }
      }
    ]
    },
   
      ...
     
     // Additional objects removed for readability
  ]
  }
}