Skip to main content
Open a navigation interface letting the user choose between Google Maps, Apple Maps, or Waze to route to the given coordinates.

Parameters

PropertyTypeRequiredDescription
latitudeDoubleYesDestination latitude
longitudeDoubleYesDestination longitude
successFunctionNoCallback on success
failFunctionNoCallback on failure

Success Callback

PropertyTypeDescription
successBooleanQuery success status
resultCodeString0 success · 1000 invalid params · 1001 network error
resultMessageStringHuman-readable status message

Code Example

my.call('mapNavigation', {
  latitude: 45.4642,
  longitude: 9.1900,
  success: (res) => {
    my.alert({ content: 'success: ' + JSON.stringify(res) });
  },
  fail: (error) => {
    my.alert({ content: 'error: ' + JSON.stringify(error) });
  }
});