Cast geographic point
types.castGeopoint(format, value)
format | available options are "default", "array" and "object", where
|
---|---|
value | geopoint to cast |
#> [[1]] #> [1] 180 #> #> [[2]] #> [1] 90 #>types.castGeopoint(format = "default", value = '180,90')#> [[1]] #> [1] 180 #> #> [[2]] #> [1] 90 #>types.castGeopoint(format = "default", value = '180, -90')#> [[1]] #> [1] 180 #> #> [[2]] #> [1] -90 #>#> [[1]] #> [1] 180 #> #> [[2]] #> [1] 90 #>types.castGeopoint(format = "array", value = '[180, -90]')#> [[1]] #> [1] 180 #> #> [[2]] #> [1] -90 #>#> [[1]] #> [1] 180 #> #> [[2]] #> [1] 90 #>types.castGeopoint(format = "object", value = '{"lon": 180, "lat": 90}')#> [[1]] #> [1] 180 #> #> [[2]] #> [1] 90 #>