mic
January 10, 2024, 3:55pm
1
Hi,
I want to create a property with geolocation data like so
location: [123.456, -123.456]
but when passing a string value from a dictionary to the Set Propertie action, I always end up with quotation marks like so
location: "[123.456, -123.456]"
Is it somehow possible to achieve the first result?
Thanks
mic
Hi @mic , welcome to the forum!
Obsidian itself doesn’t support that format for its Properties . I’m afraid your options are either to set the type of location
to a list (of strings!), or to accept the single string. Basically, this is what’s possible with Properties:
location_1:
- "123.456"
- "-123.456"
location_2: "[123.456, -123.456]"
location_3: [123.456, -123.456]
If you paste this block into an Obsidian note’s front matter, you’ll see that the File Properties info will mark location_3
with an error.
Actions for Obsidian can only support what’s made available by Obsidian, sorry. Hope this helps!
mic
January 10, 2024, 4:15pm
3
I see, Thanks a lot for the detailed answer.
1 Like