To preface I will say that I do not have much experience with programming.
Introduction
After a successful search in map view, a temporary marker is made with the title on hover containing a string that is the full address (Example after searching white house: White House, 1600 Pennsylvania Avenue Northwest Downtown, Ward 2, Washington, District of Colombia, 20500, United States).
Currently the only way to create a note from the map only includes coordinates (as far as I know) both inline and as a YAML attribute. I am requesting a way to also somehow get this string into a note without unnecessarily having to try and back track to an address by geo-requesting the given coordinates.
Idea
An ideal way that I would think this could be implemented on the users side would be an addition to the context menu if the cursor is hovering over the temporary marker or displaying its title on hover. It could be New note from address (front matter) and use the title of the temp marker to populate the address in the front matter along with the normal location. This would also allow for better organization due to being able to do dataview/dataviewJS queries based on what is included in the string. This could (if tables of states/countries/zip codes or what have you exist) also make it possible to make a function like .parse_state_from_address or something like that.
Possible options could include
- New command in command palette that would have the same location,address front matter
- Currently the New Geolocation Note command operates identically to New note here (frontmatter) only including location
- Parsing the full title to extract (if possible) more YAML metadata such as address, zip_code, city/province, state, country
- Parsing may not be successful for most due to inconsistencies, but country might at least work.
- Option to change name of attribute associated with address, similar to location
- Options to change metadata order of appearance in new notes by default
Examples
Example of current context function New note here (YAML, still using white house example
---
location: "38.8976387,-77.0365528"
---
Example of requested YAML output to new note when hovering over temporary marker
---
location: "38.8976387,-77.0365528"
address: "White House, 1600 Pennsylvania Avenue Northwest Downtown, Ward 2, Washington, District of Colombia, 20500, United States"
---
Example of a simple dataview query that this implementation would allow (all locations in Ohio). This does have issues with being inaccurate, if there were a street called ohio street this would output incorrect data, but maybe there are some tricks you programmers know for that sort of stuff.
LIST
WHERE contains(address, "ohio")
Workaround
So far the only way I can think of to workaround this issue for now is to take the coordinates and do another API call to geocode from the given coordinates to an address, which is far from ideal.
To preface I will say that I do not have much experience with programming.
Introduction
After a successful search in map view, a temporary marker is made with the title on hover containing a string that is the full address (Example after searching white house: White House, 1600 Pennsylvania Avenue Northwest Downtown, Ward 2, Washington, District of Colombia, 20500, United States).
Currently the only way to create a note from the map only includes coordinates (as far as I know) both inline and as a YAML attribute. I am requesting a way to also somehow get this string into a note without unnecessarily having to try and back track to an address by geo-requesting the given coordinates.
Idea
An ideal way that I would think this could be implemented on the users side would be an addition to the context menu if the cursor is hovering over the temporary marker or displaying its title on hover. It could be New note from address (front matter) and use the title of the temp marker to populate the address in the front matter along with the normal location. This would also allow for better organization due to being able to do dataview/dataviewJS queries based on what is included in the string. This could (if tables of states/countries/zip codes or what have you exist) also make it possible to make a function like .parse_state_from_address or something like that.
Possible options could include
Examples
Example of current context function New note here (YAML, still using white house example
Example of requested YAML output to new note when hovering over temporary marker
Example of a simple dataview query that this implementation would allow (all locations in Ohio). This does have issues with being inaccurate, if there were a street called ohio street this would output incorrect data, but maybe there are some tricks you programmers know for that sort of stuff.
Workaround
So far the only way I can think of to workaround this issue for now is to take the coordinates and do another API call to geocode from the given coordinates to an address, which is far from ideal.