notum-cz / strapi-plugin-location

This plugin allows users to create location inputs and store latitude and longitude values as geometry types in a PostGIS database. It also provides functionality to filter items based on their location.
MIT License
24 stars 13 forks source link

GeoJSON format support #52

Open claudiobgit opened 1 year ago

claudiobgit commented 1 year ago

It would be rad if the location data would be stored in the database following GeoJSON specifications.

So for example in the JSONB data field, instead of the actual: { "lat": 45.512861, "lng": 9.209278 }

recording: [ 9.209278, 45.512861 ]

would permit right away to have a proper GeoJSON Feature that could be leveraged by other plugins or applications and used to build GeoJSON Feature Collections for various frontends.

omikulcik commented 1 year ago

@claudiobgit I guess that makes sense if it is a standard. I will check the code whether there are not any limitations to this but I assume it should be fine.