5
votes

Is there a fast, persistent database for storing a latitude, longitude, and integer value for quick geo-spacial lookups?

The idea is that I have lots of ID's of different things and I want to search by lat/lon squares for all the ID's in a given location.

My first thought was the creative use of key-value store like membase or redis. However, I can't figure out a method to search based on properties like latitude and longitude short of creating set sized lat/lon blocks and placing all ids as the value (which doesn't work very well).

2

2 Answers

5
votes

How about Spatiallite, geocouch, mongodb with the spatial extension, or postgis? Don't use MySQL - it doesn't have most of the spatial functions currently implemented

3
votes

I would go for MongoDB. Its simple and has good support for Geospatial indexing and neighborhood queries.

http://www.mongodb.org/display/DOCS/Geospatial+Indexing#GeospatialIndexing-Querying