You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GeoPoint seems to save backwards even though lat/lang is saved in correct order
Environment Setup
Server
parse-server version 3.50
Operating System: OSX / Mongo Atlas DB v4
Hardware: Macbook pro
Localhost or remote server? Localhost but DB is cloud based on MongoAtlas running mongo v4
Database
MongoDB version: v4
Logs/Trace
I saved user location like so
When I try to retrieve it it comes back backwards {"__type":"GeoPoint","latitude":14.40,"longitude":50.00}
desired result is {"__type":"GeoPoint","latitude":50.00,"longitude":14.40}
Once saved it looks like a standard array in the DB and appears to be in the right order, but testing and outputting in the server console reveals the full type as above with lat/lng incorrect.
location: Array[
0:50.09
1:14.46
]```
The text was updated successfully, but these errors were encountered:
Expected Results
Geo Query returns correct values
Actual Outcome
GeoPoint seems to save backwards even though lat/lang is saved in correct order
Environment Setup
Server
Database
Logs/Trace
I saved user location like so
When I try to retrieve it it comes back backwards
{"__type":"GeoPoint","latitude":14.40,"longitude":50.00}
desired result is
{"__type":"GeoPoint","latitude":50.00,"longitude":14.40}
Once saved it looks like a standard array in the DB and appears to be in the right order, but testing and outputting in the server console reveals the full type as above with lat/lng incorrect.
The text was updated successfully, but these errors were encountered: