Geocoder API Developer's Guide

Information on How a Request Was Parsed

A user wants to debug a failed request and needs to know how the Geocoder API is parsing the specified address 2%20Kingdom%20Street%20Paddington%20London%20W2%205BD.

Request

The following GET request uses the parameter responseattributes=parsedRequest (or short: responseattributes=pr) to specify the point around which addresses are provided and the parameter mode to define the action taken.

https://geocoder.cit.api.here.com/6.2/geocode.json
  ?app_id={YOUR_APP_ID}
  &app_code={YOUR_APP_CODE}
  &responseattributes=parsedRequest
  &searchtext=2%20Kingdom%20Street%20Paddington%20London%20W2%205BD

Response

The response to the request contains the following information blocks:
  • metadata about the information used in determining the route
  • detailed information on how Geocoder API interprets the searchtext value
{
  "Response": {
    "MetaInfo": {
      "Timestamp": "2016-11-09T15:11:59.912+0000"
    },
    "View": [
      {
        "_type": "SearchResultsViewType",
        "ViewId": 0,
        "Result": [
          {
            "Relevance": 1,
            "MatchLevel": "houseNumber",
            "MatchQuality": {
              "City": 1,
              "District": 1,
              "Street": [
                1
              ],
              "HouseNumber": 1,
              "PostalCode": 0.97
            },
            "MatchType": "interpolated",
            "Location": {
              "LocationId": "NT_mC6S4gxIlpYMUs-ivIr3YC_yA",
              "LocationType": "point",
              "DisplayPosition": {
                "Latitude": 51.5193849,
                "Longitude": -0.1816464
              },
              "NavigationPosition": [
                {
                  "Latitude": 51.51925,
                  "Longitude": -0.1816464
                }
              ],
              "MapView": {
                "TopLeft": {
                  "Latitude": 51.5205091,
                  "Longitude": -0.183453
                },
                "BottomRight": {
                  "Latitude": 51.5182607,
                  "Longitude": -0.1798398
                }
              },
              "Address": {
                "Label": "2 Kingdom Street, London, W2 6BL, United Kingdom",
                "Country": "GBR",
                "State": "England",
                "County": "London",
                "City": "London",
                "District": "Paddington",
                "Street": "Kingdom Street",
                "HouseNumber": "2",
                "PostalCode": "W2 6BL",
                "AdditionalData": [
                  {
                    "value": "United Kingdom",
                    "key": "CountryName"
                  },
                  {
                    "value": "England",
                    "key": "StateName"
                  },
                  {
                    "value": "London",
                    "key": "CountyName"
                  }
                ]
              }
            },
            "ParsedRequest": {
              "Label": "2 Kingdom Street, London, W2 5BD",
              "City": "London",
              "District": "Paddington",
              "Street": [
                "Kingdom Street"
              ],
              "HouseNumber": "2",
              "PostalCode": "W2 5BD",
              "AddressLine": [
                "2 Kingdom Street",
                "London",
                "W2 5BD"
              ]
            }
          }
        ]
      }
    ]
  }
}

You cannot use this account to purchase a commercial plan on Developer Portal, as it is already associated to plans with different payment methods.

To purchase a commercial plan on Developer Portal, please register for or sign in with a different HERE Account.

Something took longer than expected.

The project should be available soon under your projects page.

Sorry, our services are not available in this region.

Something seems to have gone wrong. Please try again later.

We've detected that your account is set to Australian Dollars (AUD).
Unfortunately, we do not offer checkouts in AUD anymore.
You can continue using your current plan as normal, but to subscribe to one of our new plans,
please register for a new HERE account or contact us for billing questions on selfservesupport@here.com.