I have JSON like this coming from my server:
{
"coordinates": [
[
[
-122.41251225499991,
37.78047851100007
],
[
-122.42194124699989,
37.77303605000009
],
...trimmed...
[
-122.41251225499991,
37.78047851100007
]
]
],
"crs": {
"properties": {
"name": "EPSG:4326"
},
"type": "name"
},
"type": "Polygon"
}
I want to parse this on my server, but I'm not sure how to do that. I've found two Dart libs that work with GeoJSON:
geojson https://pub.dev/packages/geojson geojson_vi https://pub.dev/packages/geojson_vi
Both of those only have parsing from string functions, but I have a map. What's the best way to parse something like this in Dart/Flutter?