mapbox / mapbox-directions-swift

Traffic-aware directions and map matching in Swift on iOS, macOS, tvOS, watchOS, and Linux
https://www.mapbox.com/navigation/
ISC License
183 stars 88 forks source link

Valhalla support #347

Open xdmiodz opened 5 years ago

xdmiodz commented 5 years ago

Hi! Since you moved to Valhalla, according to your blog posts, is there a plan to support it in the SDK? As far as I can see, the supported API in this SDK is still OSRM-like, and differs from what Valhalla supports at the moment

1ec5 commented 5 years ago

The iOS navigation SDK supports Valhalla for offline routing via the MapboxNavigationNative framework. At the moment, MapboxDirections.swift only supports a Valhalla server endpoint if that endpoint translates the requests and responses between OSRM format and Valhalla format, but there’s no dedicated support for a raw Valhalla endpoint at the moment.

/ref #121

1ec5 commented 4 years ago

393 added initializers for Route, RouteLeg, and RouteStep that you can use as a workaround to transform raw Valhalla responses to type-safe model objects.