sql - doing "points of interest along a route" in google maps -


i need allow travelers use google maps plot route, , query database of points of interest (let's say, mcdonald's locations) , show of these locations within mile or 2 of route taking. question is, how efficiently take "driving directions" information comes google (essentially array of lat/long pairs), , turn sql query locations fall within distance route?

it not have super precise, , "as bird flies" distances routes fine. i'm concerned being reasonably efficient.

in database, things set pretty each entry having latitude , longitude, can change database schema needed.

as example, site want (if give starting point , ending point, show chevron stations near highway taking): http://www.chevron.com/products/stations/stationfinder/planyourroute.aspx

http://karmatics.com/docs/locationsalongroute.png

check out

http://google-maps-utility-library-v3.googlecode.com/svn/tags/routeboxer/1.0/examples/routeboxer-v3.html

here's documentation: http://google-maps-utility-library-v3.googlecode.com/svn/tags/routeboxer/1.0/docs/examples.html

you box coordinates routeboxer , send serverside script processing


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -