GeolocationService service
GeolocationService
service returns current location using the getCurrentCoordinates()
method. Learn more: Work with GPS data in Mobile Creatio.
getCurrentCoordinates()
Returns the result of bar code scanning.
Input parameters
GeolocationAccuracy | Accuracy to retrieve the coordinates. The time needed to determine the coordinates depends on specified accuracy. Accuracy depends on the following factors:
Available values
|
Output parameters
latitude* | Latitude, in degrees. If the latitude is undefined, return "0." | ||||||||||
longitude* | Longitude, in degrees. If the longitude is undefined, return "0." | ||||||||||
errorCode | Error code. serviceDisabled The permissionDenied Access to the permissionDeniedForever Access to the timeout Operation timeout has passed. unknown For other unexpected cases. | ||||||||||
errorMessage | Error message. | ||||||||||
accuracy | Accuracy, in meters. | ||||||||||
isMocked | The flag that specifies whether the location is provided by mocked provider. Android only. true The location is provided by mocked provider. false The location is not provided by mocked provider. |