mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-19 16:24:51 +00:00
683ec33004
And add some tests for the data widget
23 lines
702 B
Plaintext
23 lines
702 B
Plaintext
title: $:/plugins/tiddlywiki/geospatial/docs/geopoint
|
|
caption: geopoint operator
|
|
tags: $:/tags/GeospatialDocs
|
|
|
|
!! `geopoint` operator
|
|
|
|
The `geopoint` operator converts separate latitude, longitude and (optionally) altitude numbers into a [[GeoJSON Point Feature]] that can be used with other geospatial primitives.
|
|
|
|
The coordinates are specified as two or three operands:
|
|
|
|
```
|
|
[geopoint<latitude>,<longitude>,<attitude>]
|
|
```
|
|
|
|
Any operands that cannot be interpreted as a valid number will be interpreted as the value zero.
|
|
|
|
!! Examples
|
|
|
|
<$testcase>
|
|
<$data $compound-tiddler="$:/plugins/tiddlywiki/geospatial/tests/operators/geopoint"/>
|
|
<$data $tiddler="$:/plugins/tiddlywiki/geospatial"/>
|
|
</$testcase>
|