PickLocation Method

Official Content
This documentation is valid for:

Opens the Geolocation Picker to pick a location.

Parameters

Name Type Description
GeolocationPickerParms GeolocationPickerParameters Data Type It initializes the map shown to the user

Return value

  • Location:
    type: Geolocation
    The location selected by the user

Notes

  • In Android, the only parameter value taken into account is the InitialLocation

Code samples

Event "Select"
   composite
     &CarGeolocation = CarGeolocationGet() // Gets position of the Car from the Database or Session
     If &CarGeolocation.IsEmpty()
        &CarGeolocation = Geolocation.GetMyLocation(0,0,false) //Initialize with My Location if Empty.
     endif
     &GeolocationPickerParms.InitialLocation = &CarGeolocation
     &CarGeolocation = Geolocation.PickLocation( &GeolocationPickerParms)
     CarGeolocationSet(&CarGeolocation)
     refresh
   endcomposite
EndEvent