bramus / react-native-maps-directions

Directions Component for `react-native-maps`
MIT License
1.25k stars 197 forks source link

Using MapKit instead of Google for directions? #207

Open GeorgeBellTMH opened 2 years ago

GeorgeBellTMH commented 2 years ago

Just curious if this uses MapKit for directions on iOS (given that it is free for all users of iOS - and no apikey, it would seem to make more sense to make use of apple directions where possible).

bramus commented 2 years ago

This package works by calling the Directions Endpoint from Google Maps. If Apple offers a similar service it could be used, but afaik they don’t offer that.

It would require a refactor where the fetching and parsing parts of the library are separated from the rendering part.

GeorgeBellTMH commented 2 years ago

There are two options from apple:

The native one is free for all iOS users: https://developer.apple.com/documentation/mapkit/mkdirections

The javascript version is included in apple developer purchase: https://developer.apple.com/documentation/mapkitjs/mapkit/directions

Splicer97 commented 1 year ago

There are two options from apple:

The native one is free for all iOS users: https://developer.apple.com/documentation/mapkit/mkdirections

The javascript version is included in apple developer purchase: https://developer.apple.com/documentation/mapkitjs/mapkit/directions

You can use this package https://github.com/Splicer97/react-native-apple-mapkit-directions