Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

Fields Point incorrect order

default discord avatar
adams952 years ago
1

Hey guys, for field point the order should be Latitude,Longitude because currently it's Longitude and Latitude, and I need to reverse when I need to supply coordinate to google maps or OSM



Is there anyway to fix this? will propose PR if it's needed



Cheers.

  • discord user avatar
    denolfe
    2 years ago

    This is the standard order for GeoJSON fields in MongoDB.

    https://www.mongodb.com/docs/manual/reference/geojson/

    That being said, how are you supplying the coordinates to Google Maps or OSM? I would expect there to be an opportunity to reorder these before being sent?



    You could possibly use an afterRead hook to modify the data, but this may have implications in the Admin UI.

Star on GitHub

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

Get dedicated engineering support directly from the Payload team.