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

Implement /trace_route #159

Open
nilsnolde opened this issue Mar 26, 2023 · 2 comments
Open

Implement /trace_route #159

nilsnolde opened this issue Mar 26, 2023 · 2 comments

Comments

@nilsnolde
Copy link
Owner

What would you like to share?

Extend the frontend with map-matching functionalities. I'd suggest to support both inputs, encoded polyline (e.g. from an existing Valhalla response shape) and GPX (will need conversion to JSON, incl timestamps ideally). There'd obviously be no waypoint input by the user.

Approx:

  • Users can "upload" a GPX file (needs max file size) or copy/paste an encoded polyline
  • We parse the polyline or GPX file and display the input to the user simply as a LineString
  • When the user chooses to map-match with the input, hits a button
  • We send the input to /trace_route and generate the maneuvers & route summary and of course display the final route

Devil's in the details of course, but might not be that crazy much work to realize.

@MihirKp25
Copy link
Contributor

Out of context from issue. Is there any way we can create a GPX file from OSM only?

@nilsnolde
Copy link
Owner Author

Yeah, more one for stackoverflow or OSM forum. But also not sure I understand the question.. GPX is just another „geographic“ format for some random LineString. OSM has nothing to do with it. Usually you’d record a track via GPS and the exchange/export format is (unfortunately) often GPX. Nothing stops you from creating a custom GPX file manually or via some scripting.

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

2 participants