Skip to content
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

Android, Navigate Edition: Traffic incidents on route #324

Open
SergeHelfrichPI opened this issue Jun 27, 2024 · 0 comments
Open

Android, Navigate Edition: Traffic incidents on route #324

SergeHelfrichPI opened this issue Jun 27, 2024 · 0 comments

Comments

@SergeHelfrichPI
Copy link

We use the Navigate SDK for Android, version 4.18.5.0.

We want to notify the user about traffic incidents on the route and display them on the map.

First we call Section.getTrafficIncidents() to retrieve a list of incidents. 'TrafficIncidentOnRoute' provides some properties of the incident, but not its location.

To resolve the location we try to match the incident by ID with the incidents retrieved from the 'TrafficEngine'. Unfortunaly we can only query within a rather tiny radius (or box, or corridor) or an error will occur: 'TrafficQueryError: INVALID_GEOMETRY'.

How should we proceed to obtain the incidents and their locations on a route longer than a couple of kilometers?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant