Can't save geoPoint: Invalid coordinates

I’m getting this error:

code: 4002
message: "Unable to search/add geo points. Invalid coordinates."

…when i’m trying to save data object which contains this property:

location: {
___class: "GeoPoint",
categories: ["ComplexGeoPoint"],
latitude: 59.9003,
longitude: 30.3724

What am i doing wrong?

Hi Anton!

Please try again with this example:

curl -X POST -H 'application-id : xxx' -H 'secret-key : xxx'  -H 'Content-type : application/json' -d '{"location":{"___class":"GeoPoint", "categories": ["ComplexGeoPoint"], "latitude": 59.9003, "longitude": 30.3724}}'