Building requests for the POIs API
Before you can start using the API, you will need to obtain the authentication token.
The following headers will be required, where the word token must be replaced by the token obtained in the authentication process:
--header 'Content-Type: application/json' \ --header 'Authorization: Bearer token'
The body will send you all the data you need to find the points of interest on the route.
The POIs API can be used in two different ways:
Independent endpoint
Suitable for users who use third-party routing services
Trip API + POIs API
The POIs API can be used integrated with the Trip API, both synchronously and asynchronously. The information needed to obtain the points of interest will be added in the request to the Trip API:
- https://api.maplink.global/trip/v2/calculations – POST
Synchronous Trip - https://api.maplink.global/trip/v1/problems – POST
Asynchronous Trip