> At 01:42 PM 10/23/01 -0400, Uri Guttman wrote: > >you could contact them and offer to sell the software to them. > > Just make sure we can have a copy too. ;-) I for one am very interested in > seeing what you did.
Well, there's no 'copy' as such. What you see is what there is. As far as what I did, the steps were as follows: 1. Get the map from the mbta site and create the image map; tedious but necessary. 2. Download the schedules. 3. Regex the schedules to get the departing time for each stop, and the arrival time. 4. Use Date::Manip to calculate the trip times, store in a hash. 5. Update the imagemap 'alt' tags with the town/time pairs. 6. Use LWP::Simple to get() the realtor.com html for each town request, so for Salem, the request: http://www.realtor.com/FindHome/PropType.asp?frm=bymap&mls=xmls&lnksrc=REALR 1LF2C0002&st=ma&ct=salem returns a bunch of html, which you sift through, looking for: <INPUT TYPE=checkbox NAME=areaid VALUE="85681" CHECKED><B>Salem</B><BR></FONT></TD> the appropriate regexp gives you $towns{Salem}=85681, or for purposes of writing the javascript: $times{85681}=32 7. Comb through the HTML and fix the mistakes ;) Everything else should be 'intuitively obvious to the casual observer', as we used to say in school. So, basically, beside the page itself, all I have is a hodgepodge of scripts that I used for fetching and parsing.
