You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: skills/map-view/SKILL.md
+25Lines changed: 25 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,27 @@ If the [obsidian-skills](https://github.com/kepano/obsidian-skills) plugin is no
15
15
Geolocations: When the content to be added contains named real-world places (restaurants, venues, hotels, attractions, etc.), format each as a Map View inline geolink -- [Place Name](geo:lat,lng) -- rather than plain text.
16
16
If coordinates are not already known, use this skill to look them up before appending.
17
17
18
+
### Tagging geolinks (default: tag every place)
19
+
20
+
Map View inline tags go **after** the geolink, separated by a space, as `tag:name` -- bare word, **no `#`**. This is different from the `tag:#name` syntax used inside `mv-query` queries (the inline marker `tag:food` is matched by the query `tag:#food`). Multiple tags are space-separated.
**Default to tagging.** Before writing geolinks, figure out the right tag:
31
+
32
+
1. Check the project's `CLAUDE.md` for a documented geolocations tag vocabulary.
33
+
2. Grep an existing note in the vault that contains similar places to see the actual conventions in use, e.g.:
34
+
```bash
35
+
grep -h "geo:" zk/*trip*.md | head
36
+
```
37
+
3. Only omit a tag if no plausible match exists in the user's vocabulary -- **never invent a new tag**. Prefer no tag over a made-up one.
38
+
18
39
## Commands
19
40
20
41
```bash
@@ -43,6 +64,8 @@ Opens Map View filtered to show only the locations in that note. Use after addin
43
64
44
65
Consider actively asking the user if he wants to see the results after adding geolocations.
45
66
67
+
**Important:** when using `mv-focus-note`, it's recommended that the focused note will not contain links to other notes that contain geolinks. This is because the user might have a `linkedFrom` query template setfor`mv-focus-note`, so it will show much more than intended. If using `mv-focus-note`, and you were not asked to link to other notes, do not add unnecessary links.
obsidian mv-query "distancefrom:32.08,34.78<500m AND tag:#restaurant"
78
101
```
79
102
103
+
Note: inside `mv-query`, tags are written with a `#` (e.g. `tag:#food`). The corresponding **inline** tag in a note body is written _without_ the `#` (e.g. `tag:food`). See the "Tagging geolinks" section above.
104
+
80
105
Radius can be in`km`, `m`, `mi`, or `ft`. This is the fastest way to find vault markers near a given point — no routing API key required. Use it to quickly narrow down candidates before calling `mv-calc-route` only on the ones that are geographically plausible, or to answer the users forqueries like "what do I havein my vault that is around...".
81
106
82
107
## Getting rich place data (opening hours, ratings, etc.)
0 commit comments