mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-12-06 08:48:05 +00:00
Initial implementation of Google's Open Location Code conversion
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
title: $:/plugins/tiddlywiki/geospatial/tests/operators/olc
|
||||
description: olc operators
|
||||
type: text/vnd.tiddlywiki-multiple
|
||||
tags: [[$:/tags/wiki-test-spec]]
|
||||
|
||||
title: Output
|
||||
|
||||
(<$text text={{{ [olc-encode[51.751944],[-1.257778]] }}}/>)
|
||||
(<$text text={{{ [olc-encode[51.751944],[-1.257778],[11]] }}}/>)
|
||||
(<$text text={{{ [olc-decode:bounds[9C3WQP2R+QV]] }}}/>)
|
||||
(<$text text={{{ [olc-decode:point[9C3WQP2R+QVH]] }}}/>)
|
||||
|
||||
+
|
||||
title: ExpectedResult
|
||||
|
||||
<p>(9C3WQP2R+QV)
|
||||
(9C3WQP2R+QVH)
|
||||
({"type":"Feature","properties":{},"geometry":{"type":"Polygon","coordinates":[[[51.751875,-1.257875],[51.752,-1.257875],[51.752,-1.25775],[51.751875,-1.25775],[51.751875,-1.257875]]]}})
|
||||
({"type":"Feature","properties":{},"geometry":{"type":"Point","coordinates":[51.7519375,-1.257765625]}})
|
||||
</p>
|
||||
Reference in New Issue
Block a user