Skip to content

Commit 64b6932

Browse files
committed
docs: add multi-stop route deeplink example
1 parent 7b95e1e commit 64b6932

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,16 @@ When user selects a pin, your app is called like this:
158158

159159
YourAppUniqueUrlScheme://pin?ll=lat,lon&n=PinName&id=PinId
160160

161+
Organic Maps also supports v2 route deep links. You can open them directly from
162+
your app, for example to preview a route with intermediate stops:
163+
164+
NSURL * url = [NSURL URLWithString:@"om://v2/dir?origin=52.5200,13.4050&origin_name=Warehouse%20Berlin&destination=52.5163,13.3777&destination_name=Customer&waypoints=52.5304,13.3850|52.5450,13.3920&waypoint_names=Pickup%201|Pickup%202&mode=drive"];
165+
[[UIApplication sharedApplication] openURL:url];
166+
167+
Use `om://v2/nav` instead of `om://v2/dir` to start navigation when the route is
168+
ready. If `origin` is an explicit coordinate instead of `currentLocation`,
169+
Organic Maps previews the route first so the user can confirm the start point.
170+
161171
------------------------------------------------------------------------------------------
162172
### API Code is licensed under the BSD 2-Clause License
163173

0 commit comments

Comments
 (0)