docs: add v2 route deep link example#4
Conversation
Signed-off-by: Darafei Praliaskouski <me@komzpa.net> (cherry picked from commit 569a2aa)
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 020e868ae6
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| Organic Maps also supports v2 route deep links. You can open them directly from | ||
| your app, for example to preview a route with intermediate stops: | ||
|
|
||
| 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"]; |
There was a problem hiding this comment.
Avoid pre-encoding query values in URLWithString example
NSURL URLWithString: applies its own percent-encoding, so hardcoding %20 in the sample URL causes double-encoding (%20 becomes %2520). In this example, origin_name/waypoint_names will be sent as literal %20 sequences instead of spaces, which can make route labels render incorrectly or parse unexpectedly when developers copy this snippet as-is. This affects any parameter values that are already percent-escaped in the string literal.
Useful? React with 👍 / 👎.
Adds a small iOS README example for opening Organic Maps v2 route deep links directly from an app, matching the existing Android API documentation pattern.\n\nThis is intended as a helper PR for #1.