I am using PHP to save a row in a database. One field is of the type geometry
. I save a POINT
with the coordinates 52.5219
and 13.4132
.
When I retrieve the row, I use ST_AsGeoJSON
. It returns me:
"geometry": {
"type": "Point",
"coordinates": [
52.5219000000000022509993868879973888397216796875,
13.413199999999999789679350215010344982147216796875
]
}
I want the results without the extra digits. This is only happening on my staging server. On my local server it returns the correct coordinates.