Convert geohash to latitude and longitude

267 views
Skip to first unread message

Ranjit N

unread,
Jul 23, 2015, 2:34:04 PM7/23/15
to mongodb-user
How to convert geohash to latitude and longitude using mongodb function 

Stephen Steneker

unread,
Jul 27, 2015, 2:12:23 AM7/27/15
to mongodb-user, ranj...@gmail.com, ranj...@gmail.com
On Friday, 24 July 2015 04:34:04 UTC+10, Ranjit N wrote:
How to convert geohash to latitude and longitude using mongodb function 

Hi Ranjit,

Can you provide more information on the values you're looking to convert? The user interface for MongoDB geospatial indexes is based on GeoJSON documents or longitude/latitude pairs.

If you want to convert from other coordinate systems (eg. geohash) you'll have to find or create an implementation for the driver/interface you are using.

For example, geohash conversion in JavaScript: http://www.movable-type.co.uk/scripts/geohash.html

Regards,
Stephen
Reply all
Reply to author
Forward
0 new messages