/
Map view and distance calculation

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.

image-20240205-150156.png
Google Maps key

Google Maps

image-20240205-151349.png
Google Maps view with distance

 

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.