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: 7.5   8.0   8.1   8.2   8.3   8.4   8.5   9.0   9.1   9.2    Statistic  


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 } )   More


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.
TransportType Optional
The type of transportation to use.
Value can be a combination of 1 for car, 2 for walk.
Default is by car.


Returns result or error.


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.


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 ]

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

MapView.ParseDistance   -   MapView.Release

Feedback: Report problem or ask question.

MBS FileMaker Plugins