react-native-open-maps icon indicating copy to clipboard operation
react-native-open-maps copied to clipboard

Open Google and Apple maps with waypoints

Open alexeyvax opened this issue 6 years ago • 4 comments

Hey @brh55,

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

Thanks.

alexeyvax avatar Oct 26 '19 14:10 alexeyvax

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

brh55 avatar Oct 29 '19 21:10 brh55

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!

alexeyvax avatar Oct 30 '19 19:10 alexeyvax

@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.

smm76 avatar Mar 02 '20 18:03 smm76

@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 :(

alexeyvax avatar Mar 03 '20 08:03 alexeyvax

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

KarlWyer avatar Feb 13 '23 15:02 KarlWyer

Merged #75

brh55 avatar May 15 '23 17:05 brh55