Skip to main content
Open a map interface for the user to select a location.

Parameters

PropertyTypeRequiredDescription
successFunctionNoCallback with selected location
failFunctionNoCallback on failure
completeFunctionNoCallback that always executes

Success Callback

PropertyTypeDescription
nameStringLocation name
addressStringFull address
latitudeNumberLatitude
longitudeNumberLongitude

Code Example

my.chooseLocation({
  success: (res) => {
    console.log('Selected:', res.name);
    console.log('Address:', res.address);
    console.log('Coordinates:', res.latitude, res.longitude);
  }
});