A GeoJson feature looks like this :
{
"type": "Feature",
"properties": {},
"geometry": {
"type": "Point",
"coordinates": [
43.59375,
59.17592824927136
]
}
}
In Mapbox
using Java/JVM we can construct the feature like this :
val testFeature = Feature.fromGeometry(Point.fromLngLat(2.0,3.0))
But I don't seem to find a method to get coordinates/point back from the feature.
There is a Feature#getGeometry()
but I can't get the coordinates from that either as that's just a sugar for the GeoJson interface itself.