Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GPMONGODB-219: [DOC] Incorrect order of longitude, latitude in example #112

Closed
graemerocher opened this issue Sep 6, 2012 · 0 comments
Closed

Comments

@graemerocher
Copy link
Member

Original Reporter: jbalducc
Environment: Not Specified
Version: 1.0.0.GA
Migrated From: http:https://jira.grails.org/browse/GPMONGODB-219

Example for geospatial querying indicates to store lat/long in this order
{code}
new Hotel(name:"Hilton", location:[lat: 40.739037d, long: 73.992964d]).save()
{code}
But Mongo doc says, even if it's not an error, the assumed order is long/lat independently of value name.
http:https://www.mongodb.org/display/DOCS/Geospatial+Indexing (see "The Earth is Round but Maps are Flat" part).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant