The map keys are basically used to track the tasks and the location of the Agents. Also, the map keys help customers in the search of the addresses. Below is the utilization matrix you can refer to:
(i.) Customer App –
- Map Initialisation – For both iOS and Android, the map key is required at the code level for the display of the map.
- Search Address – For both iOS and Android, in master code, we use Flight map API and in URL we pass the value of the option as 2 for google maps and google map key which is picked from map config.
- Distance Matrix – For iOS in master code, we don’t have a direction matrix function with waypoints, rather distance calculation is done with distance matrix for single pickup and single delivery.
For Android in master code, we call flight map to fetch distance and time. In this map key picked from the map config which is set from the dashboard.
(ii.) Agent App –
- Map initialization – Need to set a key in code level because google checks the map key at compilation time.
- Search address -> For this, we use Flight map API and in URL we pass the value of the option as 2 for google maps and google map key which is picked from map config.
(iii.) Booking Form –
- According to the new code update, now map key has been picked from the map config which is set from Dashboard.