codeforboston / pantry_pickup

Combining city data with a list of specific needs from food pantries will allow citizens to most effectively make useful and needed donations assisted by the Pantry Pick-Up App.
http://www.pantrypickup.org
21 stars 35 forks source link

Incorporate directions into infoPanel #46

Open WheresHJ opened 10 years ago

WheresHJ commented 10 years ago

We should allow the user to get directions to a given pantry from a button in the info panel.

GretaCB commented 10 years ago

Currently working on this. Sadly can't use Google Maps directions service (what was used in Vote Cambridge) because we are creating our map object using GMaps, which is incompatible with the Google Maps directions service.

I've been fooling around with the GMaps.Route function to try to draw the route and display step-by-step instructions, but haven't been able to get it to work. Also, bummer that the documentation/examples on the GMaps site are pretty useless.

Was able to get the map.drawRoute function to work, but there are no directions included.

Does anyone have experience with GMaps routing?

carpeliam commented 10 years ago

hey, sorry I missed this last night. I'm wondering if this might be a good time to get rid of GMaps... we've been straddling this whole "let's use Backbone for events!" / "let's use GMaps callbacks for events!" line for a while, it might be a good time to fish/cut bait. I'll spend a little time looking into that, but let me know if you score any breakthroughs with GMaps.Route.

GretaCB commented 10 years ago

I'd support that. Were there other reasons we'd get rid of GMaps? I'll take another stab at GMaps.Routes/some kind of workaround.