Hi,
I’m trying to update existing GeoPoint.
After request
curl -H "Host: api.backendless.com" -H "application-id: CCD7530E-CD7B-3B6E-FF2E-B153FE232B00" -H "application-type: REST" -H "secret-key: <secret_key>" -X PATCH -v https://api.backendless.com/v1/geo/points/90868CC5-2030-FF0F-FF10-C66E18C12B00?lat=10&lon=30
only latitude gets updated.
After request
curl -H "Host: api.backendless.com" -H "application-id: CCD7530E-CD7B-3B6E-FF2E-B153FE232B00" -H "application-type: REST" -H "secret-key: <secret_key>" -X PATCH -v https://api.backendless.com/v1/geo/points/90868CC5-2030-FF0F-FF10-C66E18C12B00?lon=30&lat=10
only longitude gets updated.
Am I doing something wrong?
What’s more:
- The first requests returns error {"code":4002,"message":"Unable to search/add geo points. Invalid coordinates."} when for example lat in the url is 100
The same requests but PUT instead of PATCH always returns error
{“code”:4002,“message”:“Unable to search/add geo points. Invalid coordinates.”}
How to properly update GeoPoints?
Best,
Matt