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
check out
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
Post a Comment