1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-26 01:50:28 +00:00
TiddlyWiki5/plugins/tiddlywiki/geospatial/tests/operators/geopoint.tid
jeremy@jermolene.com 046437acf0 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.
2022-12-02 10:13:03 +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]}}