Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 8.0   8.1   8.2   8.3   8.4   8.5   9.0   9.1   9.2   9.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.
EndIdentifier Optional
Available in MBS FileMaker Plugin 9.3 or newer.
The identifier for the pin to use with script trigger.
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.
Than 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

Created 17th March 2019, last changed 6th June 2019


MapView.ParseDistance   -   MapView.Release

Feedback: Report problem or ask question.




Links
MBS FileMaker tutorial videos