Feature Request: native front-end wrapper for navigation
randyhbh opened this issue · 9 comments
Is is possible to have a Turn-by-Turn Navigation in carto-mobile like Mapbox Navigation, or it is posible to use the Mapbox Navigation into carto-mobile?
As far as I know Mapbox Navigation is a native front-end wrapper for their online navigation API. It does not do routing by itself. Carto SDK has internal offline turn-by-turn routing API, so in principle yes, it should be possible to reconfigure or rewrite Mapbox Navigation to use Carto on-device routing API instead of Mapbox online API. Still I'm not sure if you would get offline navigation as result, as mapbox navigation may still need their online map tiles to show map view I guess.
For me more promising approach would be to use something like https://github.com/mapzen/on-the-road_android for GPS location smoothing (snap to road), and then turn-by-turn navigation is quite simple app on top of carto-mobile mapview and offline routing.
uff my error, actually what I wanted to ask is what you clarify me above about Mapbox Navigation, a native front-end wrapping for navigation
By chance you will not have another case study similar to the one that points me up but made for iphone
@randyhbh this sounds like an interesting proof of concept. I'll try to create something in the coming days :)
I wrote a basic proof of concept, currently it's sitting in the tbt branch. It's still raw, I'll move it to master when I feel it's complete, but in the meantime, you can check out TurnByTurnClient.swift
Current features:
- Online routing and online map, for code readability (we have several examples where package download is shown)
- Long click the map to set a destination
- If destination is set, and your location is updated, it calculates the route between your point and your destination point
- A new route is calculated every time a location change event is triggered
- The first meaningful instruction is sent to TurnByTurnController that parses it into a meaning string response and displays your next instruction as a banner.
What I'd like it to have:
- Don't re-calculate the entire route if your route hasn't changed, but rather find the closest instruction and display that
- "Stronger" alerts when an instruction is nearby
- Other minor visual changes
- Sounds?
Closing this issue, as it's not really an issue with mobile-ios-samples, but rather a proposal.
@Nikituh, Hi
i am trying to rotate de location marker using CLLocation
true hedding, but i cant make it work, i set a bitmap image to the location marker wich is an NTPoint
object, but NTPoint
dosn't have any method to rotate according to the angle, instead of NTMarker
, i try to use an NTMarker
for location marker but at low zoom levels (zoom 6) never show the real position so i think NTPoint
was a better fit, i hope you can help me
Hey @randyhbh , can you please post additional questions about SDK usage to https://stackoverflow.com/questions/tagged/carto-mobile (with tag carto-mobile)? The github project here is not good place for them, it is meant for specific issues found from mobile-ios-samples apps.
Great, thanks! Somebody will get to it soon enough :)