Skip to content

docs: add v2 route deep link example#4

Merged
biodranik merged 1 commit into
organicmaps:updatefrom
Komzpa:komzpa/pr1-v2-route-example
May 17, 2026
Merged

docs: add v2 route deep link example#4
biodranik merged 1 commit into
organicmaps:updatefrom
Komzpa:komzpa/pr1-v2-route-example

Conversation

@Komzpa
Copy link
Copy Markdown

@Komzpa Komzpa commented May 17, 2026

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.

Signed-off-by: Darafei Praliaskouski <me@komzpa.net>
(cherry picked from commit 569a2aa)
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread README.md
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"];
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Copy link
Copy Markdown
Member

@biodranik biodranik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Дзякую!

@biodranik biodranik merged commit 87ef568 into organicmaps:update May 17, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants