Geocoder API Developer's Guide

Geocode Request

Gecoding an Address

Send a request to the geocode endpoint to find an address using a combination of country, state, county, city, postal code, district, street and house number.

Search for an address by setting the searchtext parameter to 425 W Randolph St, Chicago.

https://geocoder.cit.api.here.com/6.2/geocode.xml
?app_id={YOUR_APP_ID}
&app_code={YOUR_APP_CODE}
&gen=9
&searchtext=425+W+Randolph+Chicago

Alternatively, specify individual parts of the address, such as housenumber, street, etc.

https://geocoder.cit.api.here.com/6.2/geocode.xml
?app_id={YOUR_APP_ID}
&app_code={YOUR_APP_CODE}
&gen=9
&housenumber=425
&street=W+Randolph+St
&city=Chicago

These requests return information about the location, including latitude and longitude, position within the navigable road network and information about the quality of the match of your input to the address or addresses it found.

<Relevance>1.0</Relevance>
<MatchLevel>houseNumber</MatchLevel>
<MatchQuality>
  <City>1.0</City>
  <Street>1.0</Street>
  <HouseNumber>1.0</HouseNumber>
</MatchQuality>
<MatchType>pointAddress</MatchType>

MatchLevel shows that the most specific part of the match was house number. The match quality (which goes from 0 to 1) indicates a good match. A MatchType of pointAddress indicates that the exact address exists on the map. Other addresses are approximate and interpolated based on address ranges on the street segment they are on. The MatchType in those cases is interpolated and the result is usually less accurate than a pointAddress.

The Geocoder API also finds locations such as countries, states, counties, cities, districts, and postal codes. The following example is a search for the city Berlin.

https://geocoder.cit.api.here.com/6.2/geocode.xml
?app_id={YOUR_APP_ID}
&app_code={YOUR_APP_CODE}
&gen=9
&searchtext=Berlin

The response has only one result, Berlin in Germany, because Berlin is considered to be a prominent city. If you are looking for a city in a specific country then you can add the country name or country code to the searchtext. This gives a hint to the Geocoder. Or you can provide a strict country filter. This strictly limits the responses to that country. The following examples show both options in a search for the city Berlin in the USA.

https://geocoder.cit.api.here.com/6.2/geocode.xml
?app_id={YOUR_APP_ID}
&app_code={YOUR_APP_CODE}
&gen=9
&searchtext=Berlin,+USA
https://geocoder.cit.api.here.com/6.2/geocode.xml
?app_id={YOUR_APP_ID}
&app_code={YOUR_APP_CODE}
&gen=9
&searchtext=Berlin
&country=USA

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.