mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-04 23:39:57 +00:00
bb9c64b38e
* Reverse latitude and longitude in olc-decode tests to match proper geojson output format * Reverse latitude and longitude in olc-decode to match proper geojson output format * Reverse latitude and longitude in geopoint expected results to match proper geojson format * Reverse latitude and longitude in geolookup expected results to match proper geojson format * Corrected the Oxford to New York distances * Oxford is actually 12 miles closer to New York than Winchester Used calculator at https://www.nhc.noaa.gov/gccalc.shtml to check Reversed latitude and longitude to correct the geojson * Reversed the latitude and longitude turf.point arguments in the geopoint function * Swapped latitude and longitude in geopoint function calls
20 lines
674 B
Plaintext
20 lines
674 B
Plaintext
title: $:/plugins/tiddlywiki/geospatial/tests/operators/olc-decode
|
|
description: olc-decode operator
|
|
type: text/vnd.tiddlywiki-multiple
|
|
tags: [[$:/tags/wiki-test-spec]]
|
|
|
|
title: Description
|
|
|
|
Open Location Code operators
|
|
+
|
|
title: Output
|
|
|
|
(<$text text={{{ [olc-decode:bounds[9C3WQP2R+QV]] }}}/>)
|
|
(<$text text={{{ [olc-decode:point[9C3WQP2R+QVH]] }}}/>)
|
|
|
|
+
|
|
title: ExpectedResult
|
|
|
|
<p>({"type":"Feature","properties":{},"geometry":{"type":"Polygon","coordinates":[[[-1.257875,51.751875],[-1.257875,51.752],[-1.25775,51.752],[-1.25775,51.751875],[-1.257875,51.751875]]]}})
|
|
({"type":"Feature","properties":{},"geometry":{"type":"Point","coordinates":[-1.257765625,51.7519375]}})
|
|
</p> |