Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

Google Maps Routeboxer alternative

I'm trying to build a map feature using Google Maps for a client in which a user can specify two places they are travelling between and a radius from that route (say 5km). The idea is to then return the easiest route, along with map markers on all the fuel locations in the specified radius.

So far, I have used the directions API to create a feature which allows the user to type in two places and the map shows the easiest route. In addition to this, I have loaded all of the map markers (there are many) onto the map from a mySQL database.

It is the next step which I am finding very difficult and have done a lot of research with little success. I have found Google Maps Routeboxer but this seems out of date and unsupported. Is there an alternative? I simply want to specify a radius around the route given by the maps and return the fuel stations in this area.

Thanks for your help.