Geocoder API Developer's Guide

Constructing a Request

A request to the Geocoder API includes the basic elements shown in the following table and, in addition, it may contain resource-specific parameters.

Table 1. Basic request elements
Element Value/Example Description

Base URL

https://geocoder.api.here.com

https://reverse.geocoder.api.here.com

Production environment only.

 

https://geocoder.cit.api.here.com

https://reverse.geocoder.cit.api.here.com

Customer Integration Testing (CIT) environment only.
Note: For information on how to get access to the CIT environment, see HERE Server Environments.

Path

/6.2/  

Resource

/geocode

/reversegeocode

/multi-reversegeocode

/search

GET only except for multi-reversegeocode (POST), specify request details via query parameters.

Format specifier

.xml

.json

Specifies whether XML or JSON output is required. The format specifier must follow the resource name, for example: .../geocode.xml?...

The default output format is XML.

Application Code

&app_code={YOUR_APP_CODE}

Substitute your own unique app_code .

Application Id

&app_id={YOUR_APP_ID}

Substitute your own unique app_id.

The following geocoding request combines the elements from the table above and adds the parameter searchtext. The request specifies that the required output is XML.

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

For further information, see: