Reputation: 1053
I'm trying to design a web service on Heroku that collects GPS locations from many people in regular time intervals. Apart of keeping track of each person's location at any particular moment, I'd also like to be able to query who's within a certain range/radius.
I have an idea of how to do this using quad trees, but I just want to make sure there isn't an add-on service that already does this such that I won't be reinventing the wheel.
Any help would be appreciated!
Thanks!
Upvotes: 0
Views: 99
Reputation: 19279
PostgreSQL PostGIS is supported on Heroku and does everything you need. It looks like SpatialDB is in private alpha, but you might want to try and get an invite for that.
MongoDB also supports spatial indexes, so if you prefer that you should check out the MongoDB add-ons on Heroku.
Upvotes: 1