Map view and distance calculation
Map view
The fronted application supports the following map providers:
If the parameter GOOGLE_MAPS_KEY is specified in the VSS->Service-> Service Resource Scheduling->Customer Portal->General Settings->Mainatin Customer Portal Parameters
IMG node, then Google Maps is used.
Distance Calculation
The distance to a workshop is calculated from the current location of the device to the selected workshop.
If device’s location is not available, then the customer’s adders is used.
The workshop location is taken from the coordinates specified in the SRS Hierarchy definition.
Distance Calculation Technical Details
The calculation is only supported in the Google Maps view with the use of the Distance Matrix API.
It’s possible to provide an alternative distance calculation using the BADI /DBE/CP_DISTANCE_CALC
Device’s location is determined using the method Geolocation.getCurrentPosition() of the Geolocation API.