tmyl / cityvibes

2 stars 4 forks source link

Link to the "navigate" part of the map #9

Open CMiscov8 opened 8 years ago

CMiscov8 commented 8 years ago

We need some code so that when you click "navigate to", the app gives you directions to the event.

ycoady commented 8 years ago

check this out... try pasting this in to your browser---very cryptic but interesting!!!

https://maps.googleapis.com/maps/api/distancematrix/json&origins=Vancouver+BC&destinations=San+Francisco&mode=bicycling

CMiscov8 commented 8 years ago

It's giving me a 404 message.

I did, however, stumble into our Github repo on my phone. Very cool! Distracted often, me? On Oct 22, 2015 11:15 PM, "Yvonne Coady" notifications@github.com wrote:

check this out... try pasting this in to your browser---very cryptic but interesting!!!

https://maps.googleapis.com/maps/api/distancematrix/json&origins=Vancouver+BC&destinations=San+Francisco&mode=bicycling

— Reply to this email directly or view it on GitHub https://github.com/tmyl/cityvibes/issues/9#issuecomment-150486427.

ycoady commented 8 years ago

SORRY about the 404! try THIS (Sorry I nuked a "?" and put in a "&" !!!) https://maps.googleapis.com/maps/api/distancematrix/json?origins=Vancouver+BC&destinations=San+Francisco&mode=bicycling

CMiscov8 commented 8 years ago

Kewl! On Oct 22, 2015 11:23 PM, "Yvonne Coady" notifications@github.com wrote:

SORRY about the 404! try THIS (Sorry I nuked a "?" and put in a "&" !!!)

https://maps.googleapis.com/maps/api/distancematrix/json?origins=Vancouver+BC&destinations=San+Francisco&mode=bicycling

— Reply to this email directly or view it on GitHub https://github.com/tmyl/cityvibes/issues/9#issuecomment-150487720.

ycoady commented 8 years ago

ya, crazy eh? so that is an example of asking the Google Maps Api for some data and getting back in JSON... imagine the possibilities! :100: