Table of Contents
This project integrates with the HERE API to retrieve a specific route information based on the origin, destination and transport mode chosen by the user. It processes this data into a predefined template with Thymeleaf and enables verification of the route within the PlayAndGo platform.
Warning: ALL Environment Variables are mandatory.
Since the test still not implements survey and challenge invite, the following variables can be set to empty, but MUST be declared:
-
-
The apiEndpoint variable represents the base URL for the API of the PlayAndGoEngine.
Example: https://localhost:{port}/playandgo/api -
-
Variable used by the PlayAndGoEngine to assign a survey and/or to send a challenge invitation,
of a specific campaign, to a player.
Temporary Value: TAA.city -
-
Departure Date and Time assigned to the Route created by the Here API.
Attention! Be sure to use the right format: "yyyy-MM-dd'T'HH:mm:ss"
Example: 2024-11-11T00:00:00 -
-
End Date and Time used by the TemplateManager to set the ending date of the survey in the template.
Attention! Be sure to use the right format: "yyyy-MM-dd'T'HH:mm:ss"
Example: 2024-11-15T00:00:00 -
-
This is the Specific Key to access the HERE API.
To create it you need to have an account on HERE Api and generate it.
In the HERE Api Section you will have access to all the documentation to set and start using Here API. -
-
This is the base URL for the HERE Routing API.
It is used to create a route between two points only if the transport mode is walk or bike.
Value: https://router.hereapi.com/v8/routes -
-
This is the base URL for the creation of the API Request of HERE Public Transit API.
It is used to create a route between two points only if the transport mode is bus, train or any other public transportation.
Value: https://transit.router.hereapi.com/v8/routes -
-
Personal output directory to where the final templates will be saved before sending them to the Backend of PlayAndGo for the verification of the track.
Example for Linux: /home/username/Documents/testResults -
-
Variable used by the PlayAndGoEngine to assign a survey to a specific player.
Temporary Value: u_fe939cab-1638-45b3-a604-80a3fb018e54 -
-
Variable used by the TemplateManager to set the playerId inside the template for the challenge invite.
Temporary Value: u_11111 -
-
Start Date and Time used by the TemplateManager to set the starting date of the survey in the template.
Attention! Be sure to use the right format: "yyyy-MM-dd'T'HH:mm:ss"
Example: 2024-11-11T00:00:00 -
-
Authentication Token of AAC to access the Backend of PlayAndGo.
Since the test still not implements survey and challenge invite, the following variables can be set to empty, but MUST be declared:
- CAMPAIGN_ID
- PLAYER_ID
- PLAYER_TO_INVITE
HERE API is a suite of location-based services provided by HERE Technologies, a leading company in mapping and geospatial data. It offers features such as mapping, routing, traffic, and transit information, enabling applications to deliver real-time navigation, route optimization, and location intelligence.
You MUST add the following Services to your Project:- HERE Routing v8
- HERE Routing - Transit v8
You will not need to know it perfectly to use this application since the test will automatically change the APIs parameters based on the initial request.