Geocoder API Developer's Guide

Find Address Based on Complete or Partial Address Information using Freeform Input

The simplest use of the API is to search for an address using complete or partial address information in a single-line input field, the searchtext parameter. Any address information can be provided in the single input field, country, state, county, city, street, house number, or postal code.

Freeform Example with Complete Address Input

The following example is a search for 425 W Randolph Street in Chicago using a fairly complete address as input.

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

There is only one result for this query. Here is the label portion and the display position of the result:

<Label>425 W Randolph St, Chicago, IL 60606, United States</Label>
...
<DisplayPosition>
   <Latitude>41.8838692</Latitude>
   <Longitude>-87.6389008</Longitude>
</DisplayPosition>

Setting the gen parameter to the highest available value makes the API return the latest features.

Freeform Example with Partial Address Input

The following example is a search for 425 W Randolph Street in Chicago omitting the street type. The address is still found and there is still only a single result:

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

Example with Ambiguous Address Input

Partial input can be ambiguous. In the following example the street direction is omitted:

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

There are now two results because the address exists on both East and on West Randolph Street. Both results are equally good and the order is arbitrary:

<Label>200 E Randolph St, Chicago, IL 60601, United States</Label>
<Label>200 W Randolph St, Chicago, IL 60606, United States</Label>

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.