1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-27 10:30:28 +00:00
TiddlyWiki5/plugins/tiddlywiki/geospatial/tests/operators/geopoint.tid
jeremy@jermolene.com d3aca065ab First commit
This is the beginnings of a new core plugin to add geospatial capabilities, building on the JSON operators that we now have in the core. It uses the libraries leaflet.js for mapping and turf.js for geospatial calculations.
2023-01-18 09:06:34 +00:00

15 lines
523 B
Plaintext

title: $:/plugins/tiddlywiki/geospatial/tests/operators/geopoint
description: geopoint operator
type: text/vnd.tiddlywiki-multiple
tags: [[$:/tags/wiki-test-spec]]
title: Output
<$text text={{{ [geopoint[51.751944],[-1.257778]] }}}/>
<$text text={{{ [geopoint[51.751944],[-1.257778],[2]] }}}/>
+
title: ExpectedResult
{"type":"Feature","properties":{},"geometry":{"type":"Point","coordinates":[51.751944,-1.257778,0]}}{"type":"Feature","properties":{},"geometry":{"type":"Point","coordinates":[51.751944,-1.257778,2]}}