Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open Google and Apple maps with waypoints #30

Closed
alexeyvax opened this issue Oct 26, 2019 · 6 comments
Closed

Open Google and Apple maps with waypoints #30

alexeyvax opened this issue Oct 26, 2019 · 6 comments

Comments

@alexeyvax
Copy link

Hey @brh55,

I would like to ask you, does this lib support opening Google and Apple maps with waypoints?

Thanks.

@brh55
Copy link
Owner

brh55 commented Oct 29, 2019

Does not support waypoint, I would have to see if it's available in the URL scheme.

@alexeyvax
Copy link
Author

alexeyvax commented Oct 30, 2019

Does not support waypoint

It's too pity

I would have to see if it's available in the URL scheme.

Would appreciate if you take a look at it!

@smm76
Copy link

smm76 commented Mar 2, 2020

@alexeyvax you can achieve this by simply using RNs Linking module.
You could use it like this
Linking.openURL('https://maps.apple.com/?daddr='+URI_ENCODED_ADDRESS)
For Google Maps use
Linking.openURL('https://maps.google.com/?daddr='+URI_ENCODED_ADDRESS)
This will open Maps App with directions to your given address.

@alexeyvax
Copy link
Author

alexeyvax commented Mar 3, 2020

@smm76 Yes, you are right, but I'm looking for possibility to open apple map with additional points between start and and points. As far as I know google maps have this functionality (https://developers.google.com/maps/documentation/directions/intro#optional-parameters called waypoints). Just need to use query param &waypoints=, but apple doesn't https://developer.apple.com/library/archive/featuredarticles/iPhoneURLScheme_Reference/MapLinks/MapLinks.html or I missed something :(

@KarlWyer
Copy link

Old issue, but Apple maps supports multiple daddr parameters, see this SO question.

@brh55
Copy link
Owner

brh55 commented May 15, 2023

Merged #75

@brh55 brh55 closed this as completed May 15, 2023
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

No branches or pull requests

4 participants