mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-13 05:19:58 +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
28 lines
811 B
Plaintext
28 lines
811 B
Plaintext
title: $:/plugins/tiddlywiki/geospatial/tests/operators/geonearestpoint
|
|
description: geonearestpoint operator
|
|
type: text/vnd.tiddlywiki-multiple
|
|
tags: [[$:/tags/wiki-test-spec]]
|
|
|
|
title: Description
|
|
|
|
geonearestpoint operator
|
|
+
|
|
title: Output
|
|
|
|
\whitespace trim
|
|
<$let
|
|
oxford={{{ [geopoint[51.751944],[-1.257778]jsonset[id],[Oxford]] }}}
|
|
winchester={{{ [geopoint[51.0632],[-1.308]jsonset[id],[Winchester]] }}}
|
|
new-york={{{ [geopoint[40.730610],[-73.935242]jsonset[id],[New York]] }}}
|
|
>
|
|
|
|
<$text text={{{ =[<oxford>] =[<winchester>] +[geonearestpoint<new-york>jsonget[id]] }}}/>,
|
|
<$text text={{{ =[<winchester>] =[[Not a point]] +[geonearestpoint<new-york>jsonget[id]] }}}/>,
|
|
<$text text={{{ =[[Not a point]] +[geonearestpoint<new-york>jsonget[id]] }}}/>
|
|
|
|
</$let>
|
|
|
|
+
|
|
title: ExpectedResult
|
|
|
|
<p>Oxford,Winchester,</p> |