
Originally Posted by
veetid
stevieg: Are you grabbing your speeds from your database or are you grabbing the actually xml feed? Just curious if you ever got the mysql server setup to get speeds from. One thing with my setup is you have to grab quite a few html pages to get the speeds off them.. It can take a little while because its whole pages of html for every direction on every interstate for a given region. It would be a lot faster to have that data in a DB and just query for the speeds based on intersection name... That xml file that is included in the Traffic folder of the application shows you how my xml is setup. Based on that RDURL for each subsection of intersections I get the speed for each given Intersection, based on the Intersection name... I have a function that basically grabs all the html from the RDURL and then loops through the intersections and grabs the speed based on the intersection name. I like your earlier idea of having a program that runs my code that I currently run every few minutes and updates a DB.. I can get you the function this weekend and you have the XML...
I would prolly want to leave the xml local to the application and just query a table that has maybe RDURL, Intersection, Speed... That way I only transfer the data I need.
Bookmarks