On 1/18/2013 1:03 PM, thstart wrote:
> I have an access to the raw database and want to build my own service
Most of the major SQL databases have some degree of spatial
processing. In most cases, all they really can do efficiently is
decide whether a point is in a rectangle; there are indices to
support that. But that's good enough to eliminate all faraway
points. You can get, say, all points of interest within a
latitude/longitude range around your location. (Properly
handling the poles and the 180 degree meridian requires extra
work.) Then you can eliminate some of those based on actual
distance.
See
http://dev.mysql.com/doc/refman/5.0/en/spatial-extensions.html
for MySQL. This is a standard part of a MySQL installation.
There's PostGIS for PostGres, but it's separate from the main
PostGres effort. SQLite has a 2D index type, RTree, but
not a full set of spacial extensions like the big guys.
Any of those will probably work for you.
John Nagle