2023-04-13 08:39:52 +00:00
|
|
|
title: $:/plugins/tiddlywiki/geospatial/tests/operators/geonearestpoint
|
2023-04-04 20:49:22 +00:00
|
|
|
description: geonearestpoint operator
|
|
|
|
type: text/vnd.tiddlywiki-multiple
|
|
|
|
tags: [[$:/tags/wiki-test-spec]]
|
|
|
|
|
2023-04-13 08:39:52 +00:00
|
|
|
title: Description
|
|
|
|
|
|
|
|
geonearestpoint operator
|
|
|
|
+
|
2023-04-04 20:49:22 +00:00
|
|
|
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={{{ =[<oxford>] =[[Not a point]] +[geonearestpoint<new-york>jsonget[id]] }}}/>,
|
|
|
|
<$text text={{{ =[[Not a point]] +[geonearestpoint<new-york>jsonget[id]] }}}/>
|
|
|
|
|
|
|
|
</$let>
|
|
|
|
|
|
|
|
+
|
|
|
|
title: ExpectedResult
|
|
|
|
|
|
|
|
<p>Winchester,Oxford,</p>
|