This function determines the user's location when operating the JobRouter app on the smartphone.
Please note: This function is only available for the JobRouter app.
In the properties of a mobile step, it can be specified whether the geolocation requirement is required or optional.
If the geolocation is set to Required, a message is displayed each time a step is opened. The user can decide here whether to open or cancel the step.

Zustimmung Geolocation
When the location step is opened for the first time on the smartphone, the user must agree to the authorisation to retrieve the device location.

Standortbestimmung Berechtigung
Please note: In order for the device location to actually be determined, the Location setting must be activated on the smartphone.

Standort
If the location setting on the smartphone is switched off or the location cannot be determined, an error message appears in the JobRouter app and the step cannot be opened.
The return value of the function is the geolocation as a JSON string.
Example:
{"latitude":48.6574308,"longitude":9.2914422,"accuracy":22.573999404907227,"altitude":256.5,"altitudeAccuracy":1,"speed":0,"heading":0}