vta.local.google.com
Jul. 22nd, 2006 03:45 pm![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
(Cross-posted to my long-fallow idea blog.)
I've been trying to drive less lately, so for me, that means walking, biking, and using the VTA. However, getting somewhere on the VTA is only really useful if I already know where my target is and need to find the closest stop. If I instead need to find, say, a hardware store near a station, that involves a manual search by address, which is a pain in the ass; it'd be nice to have an interface that lets me pick, say, "hardware store near (any VTA stop)" or "hardware store near (this set of VTA stops)".
I own a copy of Google Maps Hacks (thank you, free books at O'Reilly Emerging Tech!), though I haven't read it yet. Still, given that the entire local.google.com interface is JavaScript, it seems like it'd be pretty trivial to write a .js include or a stylesheet containing all the VTA station addresses as variables, then create an interface which lets you select either "all VTA stops" or a certain station from a dropdown, with an optional "...and N stops in either direction" parameter. I'm not sure whether Google Maps will let you select multiple start locations (though I'd hope they would have included the ability to OR several start locations together, since the results will certainly OR multiple end locations), but if not, I suppose the results could just be chained -- perhaps a radio button on the results page that lets you pick which station to show results for.
An obvious design goal is to make this extensible, so that you could drop in an include file for BART stops in SF, T stops in Boston and so on and so forth. Getting that to work from the initial search string shouldn't be too hard if it's possible to piggyback off Google's parser -- let Google find the city, then check for an appropriate include file, use it if there is one, kick back an error if not.
I might make it to SuperHappyDevHouse tonight; if so, this is what I'll be working on.
(Now, if only there were a good way to tell Google "and I'll be walking or biking from my start location, so quit giving me results that involve freeways...")
EDIT: Hack #31 in Google Maps Hacks has a few public transit hacks, but they appear to be "here is a bunch of information about transit lines and how to find the actual stations and whether you can store a bike there and stuff like that" -- cf. David Pritchard's Vancouver transit map and Matt King's Boston Subway Station Map. So, there's a start, but what I really want is to be able to plan excursions when I don't know what's near a stop.
The reverse will of course also be useful -- "I want to go to this movie theatre, what's the closest transit stop?" -- but a lot of public transit services already provide this, so it's not as much of a priority.
I've been trying to drive less lately, so for me, that means walking, biking, and using the VTA. However, getting somewhere on the VTA is only really useful if I already know where my target is and need to find the closest stop. If I instead need to find, say, a hardware store near a station, that involves a manual search by address, which is a pain in the ass; it'd be nice to have an interface that lets me pick, say, "hardware store near (any VTA stop)" or "hardware store near (this set of VTA stops)".
I own a copy of Google Maps Hacks (thank you, free books at O'Reilly Emerging Tech!), though I haven't read it yet. Still, given that the entire local.google.com interface is JavaScript, it seems like it'd be pretty trivial to write a .js include or a stylesheet containing all the VTA station addresses as variables, then create an interface which lets you select either "all VTA stops" or a certain station from a dropdown, with an optional "...and N stops in either direction" parameter. I'm not sure whether Google Maps will let you select multiple start locations (though I'd hope they would have included the ability to OR several start locations together, since the results will certainly OR multiple end locations), but if not, I suppose the results could just be chained -- perhaps a radio button on the results page that lets you pick which station to show results for.
An obvious design goal is to make this extensible, so that you could drop in an include file for BART stops in SF, T stops in Boston and so on and so forth. Getting that to work from the initial search string shouldn't be too hard if it's possible to piggyback off Google's parser -- let Google find the city, then check for an appropriate include file, use it if there is one, kick back an error if not.
I might make it to SuperHappyDevHouse tonight; if so, this is what I'll be working on.
(Now, if only there were a good way to tell Google "and I'll be walking or biking from my start location, so quit giving me results that involve freeways...")
EDIT: Hack #31 in Google Maps Hacks has a few public transit hacks, but they appear to be "here is a bunch of information about transit lines and how to find the actual stations and whether you can store a bike there and stuff like that" -- cf. David Pritchard's Vancouver transit map and Matt King's Boston Subway Station Map. So, there's a start, but what I really want is to be able to plan excursions when I don't know what's near a stop.
The reverse will of course also be useful -- "I want to go to this movie theatre, what's the closest transit stop?" -- but a lot of public transit services already provide this, so it's not as much of a priority.
(no subject)
Date: 2006-07-23 12:01 am (UTC)-Ogre
(no subject)
Date: 2006-07-23 01:08 am (UTC)(no subject)
Date: 2006-07-23 07:22 am (UTC)