-
Notifications
You must be signed in to change notification settings - Fork 318
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
MapMatching API Question - Android #1378
Comments
@Danny-James Knowing the logic that sits behind calculating the banner and voice instructions, I think you're going to have trouble stitching multiple Map Matching requests together - it'll throw off the distance/offset timing calculations. Your best bet will probably be to request overlapping map-matching traces. Most of the inconsistency you'll find, as you've discovered, will happen at the start/end of the trace where there is special behaviour. If you can request overlapping traces, you can then trim the start/end sections, and join the results at the point where they become equal. It'll take some fiddly comparisons and array splicing, but I think it's the most likely approach to work without too many edge cases. Also note that we do offer higher coordinate limits if you sign up for an Enterprise account. |
@danpat so is their no way of knowing when the user has reached the 90th coordinate in the navigation? What are the maximum requests if i signup for the enterprise on average our KML files contain around 1500 coordinates. |
@danpat I'm not to bothered about the distance/time as i'm not showing the bottom banner, i'm only showing the top banner which shows turn icons and street names etc. So i believe if i know when the user reaches the 90th coordinate or what ever i choose to set as the fetch next lot of coordinates i will be able to workaround the issue where a set of 100 coordinates lands on a intersection or traffic island. |
@Danny-James You'd have to do some of the math there yourself. I believe the Android SDK has Maximum limits for Enterprise accounts can be negotiated. 1500 coords is definitely something we can technically do, but I'm just a lowly engineer, I don't actually know how much our sales folks would try to charge for that capability. |
I will look at doing some calculations with disatance remaining as this seems to be the only option here, i did try adding an additional Waypoint into the request but this basically causes the same problem. @danpat I don't know whether you could help with the NavigationMap Route Line, i plot a Polyline on the map of the whole route (1500 coordinates) when i run the navigation i get a darker blue line for the 100 coordinates. This darker blue line i believe is the NavigationMapRoute, this line also contains Turn arrows which i would like to keep however i would like to hide the NavigationMapRoute. I do have an issue open but don't seem to have had a response for some time. #1293 |
@Danny-James Sorry - I don't know that much about the Nav SDK itself - I work primarily on the backend algorithms related to routing and matching - UI stuff is not my forté. Can this ticket be closed? |
@danpat yes go ahead and close this ticket, my plan of action is to have a variable of which Coordinate i want to initiate the new route fetch I will then calculate the distance from the Last Coordinate in the map matching to the Thanks, for your input on this @danpat |
I am in need of some help in regards to the MapMatching API, I understand you can pass in a Maximum of 100 Coordinates per request, this is fine, All my routes have much more than 100 Coordinates which is fine as i then call
Each time this is called and a route is returned i remove 100 coordinates from my Master List, so when the
onArrival();
event is triggered I check to see if the master list still has coordinates to be routed if so, re callfetchRoute();
and so on.However, with this i've come across some routes where the last coordinate in the route lands on a Intersection or Traffic Island which is then not giving correct voice instructions.
What i would like to do is still pass in 100 coordinates but reroute when the user arrives at coordinate 90 of the plotted route, i will then remove those 90 from the master list and pass in an additional 90 coordinates.
However, i'm not able to see anything which will tell me when the user has reached the 90th Coordinate passed into the MapMatching API.
The text was updated successfully, but these errors were encountered: