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.5
10.0
10.1
10.2
10.3
10.4
10.5
11.0
11.1
11.2
Statistic
FMM
Blog
Plans a route.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
MapView | 9.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ✅ Yes |
Parameter | Description | Example | Flags |
---|---|---|---|
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 | The type of transportation to use. Value can be a combination of 1 for car, 2 for walk. Default is by car. |
1 | Optional |
StartIdentifier | 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. |
Optional | |
EndIdentifier | 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. |
Optional | |
StartColor | 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" | Optional |
EndColor | 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" | Optional |
Returns result or error.
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 14th October 2019
MapView.ParseDistance - MapView.Release
Feedback: Report problem or ask question.