HERE Location Services’ REST APIs provide a way to return rich data for integrating robust location features into applications. Use cases include:
Because such a wide array of parameters can be included in HERE REST API calls, testing URLs in a web browser can be unwieldy.
Thankfully, the Postman app makes testing REST API calls much simpler.
To get started, download the Postman app or use the recently released web version of its API collaboration platform.
Choosing global variables makes selected variables accessible to any request within your workspace. I found it useful to set up a global variable for the apiKey, as follows:
Before beginning the test, make sure the request type is set to GET and enter the request URL. Our example uses the Routing API, so we’ll enter https://router.hereapi.com/v8/routes
.
Finish constructing the request by inputting the parameters in the Query Params section:
When you have entered the parameters, click Send, and a response window similar to this one will appear:
As you start building more complex requests, you can easily turn specific parameters on and off by clicking the checkbox. You can also change their values.
Have questions or need help? Don’t hesitate to contact us. And if you want to learn more about what you can do with the powerful HERE APIs, read our fact sheet, HERE Developer Tools: 3 Key Benefits for App Developers.