cogsci / wigglemap

Repo for reroute hackathon at Hattery (For Diana)
www.wigglemap.com
5 stars 0 forks source link

name of street on timeline #9

Open slinlee opened 12 years ago

slinlee commented 12 years ago

show name of street on timeline

andrewdanks commented 12 years ago

Hmm, if I remember correctly, the google API doesn't explicitly give the street name; they embed it in the directions string, which seems a little silly

Of course, we could use regex to strip it out, since the directions seemed to be of the form ".... onto ". But this seems hacky and fragile. Is there another way, without making a service call to the backend?

kmiyashiro commented 12 years ago

This should be easy to do since each segment is already linked to a particular step in the directions. Matching up the steps to the timeline is just a 1:1 zip.