brett....@gmail.com
unread,Sep 25, 2009, 3:48:25 PM9/25/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Transit Feed Spec Changes
In my software, written in Perl, I defined a hash to catalog all the
proposed features:
my %features = (
1000 => "Shelter",
2000 => "Furniture",
2100 => "Bench",
2200 => "Trash Can",
2300 => "Bike Storage",
2310 => "Bike Rack",
2320 => "Bike Locker",
2400 => "Vending Machine",
2410 => "Ticket Vending Machine",
2420 => "Food Vending Machine",
2500 => "Phone",
3000 => "Pavement Features",
3100 => "Curbcut",
3200 => "Sidewalk",
3300 => "Paved Landing",
3310 => "Paved Front Door Landing",
3320 => "Paved Back Door Landing",
3400 => "Crosswalk",
4000 => "Information Display",
4100 => "Schedule Display",
4110 => "Printed Schedule Display",
4120 => "Electronic Schedule Display",
4200 => "Real Time Arrival Display",
5000 => "Lighting",
5100 => "Shelter Light",
5200 => "Street Light",
);
As I iterate through the stops, I append the individual amenities
(sorted by feature_type) to the textual description I've built up for
the stop. I'm creating CSV files for import into Garmin navigation
devices, where the third field is the item's title, and the fourth
field is the description.
A sample entry like this:
-122.677654,45.518878,"7625: SW 5th & Morrison","Stop ID 7625/Fareless
Square
Southbound stop in Portland
1: Vermont
8: Jackson Park/NE 15th
12: Barbur/Sandy Blvd
94: Sherwood/Pacific Hwy Express"
becomes:
-122.677654,45.518878,"7625: SW 5th & Morrison","Stop ID 7625/Fareless
Square
Southbound stop in Portland
1: Vermont
8: Jackson Park/NE 15th
12: Barbur/Sandy Blvd
94: Sherwood/Pacific Hwy Express
Shelter
Bench
Curbcut
Sidewalk
Paved Front Door Landing
Paved Back Door Landing
Crosswalk
Street Light"
So, it's really just supplemental information that's displayed only
when you actually view the details for a stop. Currently, if the
proposed specification changes, I will have to update my code. It does
warn me, however, if it encounters an unknown feature_type.
-- Brett Warden