vmarc / knooppuntnet

Route planner and quality assurance for walking and cycling networks in OpenStreetMap.
MIT License
31 stars 6 forks source link

[Feature Request] Handle coordinates in URL #202

Closed pyrog closed 1 year ago

pyrog commented 3 years ago

For e.g. documenting nodes, display a specific place on knooppuntnet… it will be useful to handle coordinates in URL.

Something like WaymarkedTrails:

Or BRouter:

Note:

This is examples based on other OSM apps. It should be adapted to current analysis URLs:

These URLs are similar to what I am looking for

… but it's not possible to specify the exact view and it's not possible to easily copy/paste the URL from the map

pelderson commented 2 years ago

I support this idea! For Analysis, I use the URL to the object, no problem there. For PLanner, I often create a short dummy route and use the output link instead of a URL with coördinates. That's clumsy, and with any application update the itinerary link stops working.

vmarc commented 2 years ago

The "position" query parameter has been added to the url of the map pages. The url with the position parameter is updated when panning the map or zooming in or out.

For example:

The planned route is now included in the "plan" query parameter in the planner url.