Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples
Videos
New in version: 9.0   9.1   9.2   9.3   9.4   9.5   10.0   10.1   10.2   10.3    Statistic  

MapView.PlanRoute

Plans a route.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
MapView 9.2 Yes No Yes, macOS only No Yes
MBS( "MapView.PlanRoute"; MapView; SourceAddress; DestinationAddress; Mode { ; TransportType; StartIdentifier; EndIdentifier; StartColor; EndColor } )   More

Parameters

Parameter Description Example value
MapView The map view reference number. $$MapView
SourceAddress The address where to start. "Köln"
DestinationAddress The address where to end. "München"
Mode Various options.
Add 1 to show route on map.
Add 2 to show alternative routes on the map.
Add 4 to show start of route with a pin.
Add 8 to show end of route with a pin.
Add 16 to zoom map to show whole of the router.
Add 32 to return result as JSON.
Add 64 to include poly lines in JSON.
1+4+8+16
TransportType Optional
The type of transportation to use.
Value can be a combination of 1 for car, 2 for walk.
Default is by car.
1
StartIdentifier Optional
Available in MBS FileMaker Plugin 9.3 or newer.
The identifier for the pin to use with script trigger.
If empty, the plugin assigns a number automatically.
EndIdentifier Optional
Available in MBS FileMaker Plugin 9.3 or newer.
The identifier for the pin to use with script trigger.
If empty, the plugin assigns a number automatically.
StartColor Optional
Available in MBS FileMaker Plugin 9.3 or newer.
The color to use.
Can be a color name or hex notation like in HTML.
"#FF0000"
EndColor Optional
Available in MBS FileMaker Plugin 9.3 or newer.
The color to use.
Can be a color name or hex notation like in HTML.
"#FF0000"

Result

Returns result or error.

Description

Plans a route.
The plugin will lookup coordinates for the given addresses and request a route calculation.
Then we may add show routes and optionally return JSON with results.

Examples

Plan a route and store JSON:

Set Variable [ $r ; Value: MBS("MapView.PlanRoute"; $$MapView; "Köln"; "München"; 1+2+4+8+16+32; 1+2+4) ]
Set Field [ MapView::Route ; $r ]

Example Databases

Blog Entries

Release notes

Created 17th March 2019, last changed 14th October 2019


MapView.ParseDistance   -   MapView.Release

Feedback: Report problem or ask question.




Links
MBS Xojo Chart Plugins