obsidian-map-view icon indicating copy to clipboard operation
obsidian-map-view copied to clipboard

Ability to view driving routes

Open Shreshth-mehra opened this issue 1 year ago • 2 comments

Not sure how complicated this would be to implement but would love to be able to add Points A,B,C with their geo coordinates and then be able to see the route displayed on the map. Basically, a feature similar to viewing directions on Google My Maps. I'd love to create a pull request for this myself if I can get some guidance how best to implement this considering I'm not familiar with the existing architecture of the code

Shreshth-mehra avatar Aug 19 '24 15:08 Shreshth-mehra

I'll try to describe what's required to get this done, and it'll help us make sure I understood you correctly, and for you to assess if it's a project you want to take upon yourself.

  • Integration with some directions map API, either the Google one (which I'm not sure is free) or something else.
  • Creating a good UI in Map View to mark points for getting directions between -- a multi-selection mode and right-clicking for "route"? An extension of the existing "route to point" mechanism?
  • I assume you'll want to save the routes to persist on the map, so here comes the more complicated part: adding support to shapes (e.g. in GPX or another format), as described here for example. The bare minimum here would be reading GPX files from the vault, some way to format them, filter them, turn them on/off, etc, with at least the basic UI to do so.

esm7 avatar Aug 19 '24 18:08 esm7

I agree this would be a high-value addition.

Related (and probably simpler?) would be if there's a way to easily set numbered marker icons, or use the 'links view' easily for a numbered list in a single page.

Thinking about the use-case of planning a trip and wanting to order the geo locations in the most efficient way. Driving routes would be ideal, but just having a visual representation of the order would help as well

This is an interesting related idea: inkandswitch.com/embark

Great work on this plugin!

emeforward avatar Oct 02 '24 15:10 emeforward

Note that this is now implemented in Obsidian 6.0.0, see here to try the beta: https://github.com/esm7/obsidian-map-view/tree/v6.0?tab=readme-ov-file#600

esm7 avatar Oct 06 '25 04:10 esm7