Announcement

Collapse
No announcement yet.

XMLTraffic Plugin

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • XMLTraffic Plugin

    09-14-2006 Update: XMLTraffic_V1.1_beta.rar

    The plugin is now configurable. Examples are provided in the download for dutch and usa traffic. Read the readme.txt for details.

    08-27-2006

    I have developed a plugin for RR that will show information on traffic jams. The plugin is getting this information from a XML, HTML or text file in the plugin directory. The file can be downloaded from the internet using a supplied script. I'm using the AutoNetDetect tools myself so that whenever a internet connection becomes available the traffic information is downloaded in the plugin directory. Because no standard is defined for traffic info message in XML format (at least not to my knowledge, please proof me wrong) I have to change the function to extract the data from the text or XML file per internetsite the imformation is coming from. Currently if have made this work for The Netherlands but if you supply me the location of the traffic information for your region I will see what I can do. So, I'm calling upon my fellow dutch-people to test this and let me know the results.

    Click image for larger version

Name:	xmltraffic.JPG
Views:	1
Size:	86.3 KB
ID:	2299158

    XMLTraffic_V1.0_beta.rar

    XMLTraffic plugin how-to

    Extract the attached rar file in the (new to create) plugin\XMLTraffic directory in the RR Path.
    If you are using a plugin for the first time, please copy the wait.jpg and wait.skin to your RR skin directory if it does not already exist.
    In my skin's ExecTbl.ini I added the following line:

    "TRAFFIC","PLUGIN;XMLTraffic;C:\Program Files\Road Runner\Plugins\XMLTraffic\XMLTraffic.exe"

    I can now call the traffic info page using a button with the command "TRAFFIC"

    A sample XML is supplied in the RAR so you will see the dutch traffic info of the 26th of august at 23:30.

    XMLTraffic skining how-to

    If have created the following labels and buttons in the XMLTraffic plugin (see sample XMLTraffic.skin)

    Labels

    TRAFFIC_ROAD Name of the highway, road
    TRAFFIC_TITLE
    TRAFFIC_LOCATION Location between which cities or places the traffic jam is
    TRAFFIC_DESC More detailed info about the traffic jam
    TRAFFIC_LENGTH The length of the traffic jam
    TRAFFIC_LON Longitude info of the traffic info
    TRAFFIC_LAT Latitude of the traffic info

    For the above labels: the Tooltip property of the label is used to identify the number of the label. This means you can add the same labels in screen to create a list of traffic info. Max number of the tooltip will set the "page size" used to calculate the number of traffic info pages.

    TRAFFIC_TOTAL Number of traffic jams found in the XML, HTML or txt file
    TRAFFIC_TOTAL_LENGTH Total Length of traffic jams
    TRAFFIC_UPDATED Time the information was last updated
    TRAFFIC_PAGE Current page of info being looked at
    TRAFFIC_PAGES Number of traffic info pages

    Buttons

    TRAFFIC_PREV Go one page back
    TRAFFIC_NEXT Go to the next page (if available)
    RELOAD_TRAFFIC Reload the traffic info (after the XMl, HTML or text file was updated)


    To-do

    I'm thinking of adding another screen with mobile speed camera info.
    My car: 2009 MAZDA CX-9 3.7L V6 runnin on LPG (Liquid Petrol Gas)
    Hardware: None at the moment
    Software: None at the moment
    See: Velleman K8055 Plugin for Road Runner

    Progress: [XXXXXXXXXX] 0 % DONE

  • #2
    www.traffic.com for us traffic info. others may know of a better us site.
    69 Mustang
    408 clevor AFD 2v heads - Viper T56
    Audio:RUX-C701, PXA-H701, MRV-F545, (2) MRD-M1005, SIR-SC-H1, DMHD1000, Dayton Audio: (2) RS180-4, (2) RS28F-4, (2) RSS265HO-44 DVC

    Comment


    • #3
      Originally posted by crabbdaddy View Post
      www.traffic.com for us traffic info. others may know of a better us site.
      Yeah, was looking at the rss feed of that site. But it isn't a clean xml file. However, it will be useable.
      My car: 2009 MAZDA CX-9 3.7L V6 runnin on LPG (Liquid Petrol Gas)
      Hardware: None at the moment
      Software: None at the moment
      See: Velleman K8055 Plugin for Road Runner

      Progress: [XXXXXXXXXX] 0 % DONE

      Comment


      • #4
        looks good.. yahoo has some decent rss feeds
        ill have to download this and try it out ill be doing something similar with gpsgas

        /ok back to coding for me
        .______
        | '_ |__\___
        [(o)|___(o)] XB
        ._________
        | I__I I_I|_\__I
        [(o)______(o)]b VanPimpin'

        LostReceptions Apps D/L Here

        GPSGasoline- Rewriting

        Draw- SkribblePad for Touchscreens

        iGQwerty-iG3.0 Qwerty Keyboard

        CarPCNetwork

        Comment


        • #5
          Originally posted by lostreception View Post
          looks good.. yahoo has some decent rss feeds
          ill have to download this and try it out ill be doing something similar with gpsgas

          /ok back to coding for me

          The yahoo rss traffic feed is alright. Wonder how often you can call it since yahoo limits the amount of calls ( based on ip )
          My car: 2009 MAZDA CX-9 3.7L V6 runnin on LPG (Liquid Petrol Gas)
          Hardware: None at the moment
          Software: None at the moment
          See: Velleman K8055 Plugin for Road Runner

          Progress: [XXXXXXXXXX] 0 % DONE

          Comment


          • #6
            Originally posted by 307SW_NLD View Post
            The yahoo rss traffic feed is alright. Wonder how often you can call it since yahoo limits the amount of calls ( based on ip )
            plenty of times gpsgas uses the yahoo sdk to geocode stations and each zip code has 8 stations i test this program all the time and submit many many queries and never have been rate limited
            .______
            | '_ |__\___
            [(o)|___(o)] XB
            ._________
            | I__I I_I|_\__I
            [(o)______(o)]b VanPimpin'

            LostReceptions Apps D/L Here

            GPSGasoline- Rewriting

            Draw- SkribblePad for Touchscreens

            iGQwerty-iG3.0 Qwerty Keyboard

            CarPCNetwork

            Comment


            • #7
              http://www.traffic.com/Pittsburgh-Tr...c-Reports.html if you could somehow toss that into the xml traffic plugin that would be great. Covers the metro pittsbugh, pa area, and I know we have other peeps from PGH on the forum as well. GO STEELERS!

              Comment


              • #8
                Cooooool... My fav subject.

                Ideally you need to have the RSS feeds map on to a static map or even MSN Earth ( or what ever it and Google call them selves although MSN is better IMHO.

                Here is a load of UK info - thanks to Rusty for shouting me on this...... oh and if you need any more specific UK stuff let me know - I'm in to all this...





                Found this while surfing the net the other day... any one fancy creating a plug in / addon for FD ?

                I know the camera data is goverment and in thery copy right free how ever Traffic TV have some kind of exclusive contract arround the delivery of it to the public... there have been a few news reports about this and simular data.... the traffic data - not so sure but its useable

                h**p://members.traffictv.co.uk/data/data.asp

                Suggested Interface -

                That a menu should have

                TM data on off
                Cam data on off
                Refresh time ( ie collect data on net and read in to loacl file ( which also needs clearing down when FD starts / comes back from hibernation to ensure latest data
                Auto display cam pic
                clear down manual
                ( and may be a few more )

                The Map

                The TM data URL provides the image file needed for the POI - this just needs displaying using the lat long co ords. If poss flashing would be cool.

                You probably need an error routine as well... ie try three times to collect the online data before displaying a fail icon on screen. This could be retried bly clicking the said icons to do another three and so on...

                This will take account of loosing GPRS connections for an extended period and if the mobile phone is not in the card... if you use a phone....

                I have plenty more infomation sources but this is one of the better ones... and yes I know Gobby is up to some thing but this may work in conjunction or at least while we wait.

                Terran

                PS If you really want to use the above traffic data then I suggest you buy a subscription to say you at least have a right to use it in this format.

                EDIT - Other Sources
                TPEG UK - http://www.bbc.co.uk/travelnews/xml/tpegml_en/rtm.xml
                TMC UK - h**p://www.getmethere.co.uk/temp/map1.xml - h**p://www.getmethere.co.uk/temp/map15.xml
                TMC UK ( But Can do EU Areas ) - http://h**p://rs0124.66.com:8080/tmc...G&m=eng8&u=130 <--- Most of the EU supported by this loaction
                Links To Other TMC Services - http://www.navigatiehosting.nl/
                England RSS Feeds - http://www.realtime-traffic.info/index.htmlAs Follows

                http://www.qmissxmlservice.org.uk/XM...GD/content.xml ( All )
                http://www.qmissxmlservice.org.uk/XM...SS/content.xml
                http://www.qmissxmlservice.org.uk/XM...RW/content.xml
                http://www.qmissxmlservice.org.uk/XM...TE/content.xml

                Scotland - http://www.trafficscotland.org/ ( its there some where )

                Wales - http://www.traffic-wales.com/home.php?lang=english ( its there some where )

                TMC Event Icon Set - http://rapidshare.de/files/25826587/TMC.zip.html

                TPEG Standard Info - http://www.bbc.co.uk/travelnews/xml/ & http://www.bbc.co.uk/rd/projects/tpeg/index.shtml
                TMC Wiki - http://en.wikipedia.org/wiki/Traffic_Message_Channel
                More TMC - http://www.blinkbits.com/en_wikifeeds/RDS_TMC

                TMC DLL For GNS RDS Devices ( no idea how to use ) http://rapidshare.de/files/25827965/gpstmc.dll.html

                Sorry Cant find the TMC event code list - I did have it not sure where I put it.... ( Look up how the TMC message is constructed ). Some of the later Destinator maps have the TMC codes built in...
                Terran
                My Project Site

                Comment


                • #9
                  PS - Depending on how this goes I may have a crack at a skin for MC2 for it.. that been said my current traffic system is based on the web and gives me a grafical readout from main web sites ( ala above ) .... I'd show u it but I've not completed it yet.

                  Terran

                  PS Astrailia has some feeds but they are from each state - probably need one of them to post em all up here for you...

                  Also as an added function may be display only data that is relevaent - ie on the road, route or surrounding areas of your loaction... you could grab info from Freedrive to support that...
                  My Project Site

                  Comment


                  • #10
                    Originally posted by ccsnet View Post
                    PS - Depending on how this goes I may have a crack at a skin for MC2 for it.. that been said my current traffic system is based on the web and gives me a grafical readout from main web sites ( ala above ) .... I'd show u it but I've not completed it yet.

                    Terran

                    PS Astrailia has some feeds but they are from each state - probably need one of them to post em all up here for you...

                    Also as an added function may be display only data that is relevaent - ie on the road, route or surrounding areas of your loaction... you could grab info from Freedrive to support that...
                    Was looking into the feeds from yahoo (take for ex. http://api.local.yahoo.com/MapsServi...o&city=NewYork) and that also hold long and lat info. I should be able to only show items within a predefined radius. I do'nt know if any of your UK feeds hold long and lat info.
                    My car: 2009 MAZDA CX-9 3.7L V6 runnin on LPG (Liquid Petrol Gas)
                    Hardware: None at the moment
                    Software: None at the moment
                    See: Velleman K8055 Plugin for Road Runner

                    Progress: [XXXXXXXXXX] 0 % DONE

                    Comment


                    • #11
                      Originally posted by 307SW_NLD View Post
                      Was looking into the feeds from yahoo (take for ex. http://api.local.yahoo.com/MapsServi...o&city=NewYork) and that also hold long and lat info. I should be able to only show items within a predefined radius. I do'nt know if any of your UK feeds hold long and lat info.
                      The Traffic TV ones do ( for purposes of testing although I had problems with the 'get' command under java grabbing the file. If you find a way that I can use on the web let me know... in the mean time it gives you access to some test data... although tecnically a subscription is needed and I advise those that use it to get one.

                      Terran
                      My Project Site

                      Comment


                      • #12
                        Originally posted by 307SW_NLD View Post
                        Was looking into the feeds from yahoo (take for ex. http://api.local.yahoo.com/MapsServi...o&city=NewYork) and that also hold long and lat info. I should be able to only show items within a predefined radius. I do'nt know if any of your UK feeds hold long and lat info.
                        The Traffic TV ones do ( for purposes of testing although I had problems with the 'get' command under java grabbing the file. If you find a way that I can use on the web let me know... in the mean time it gives you access to some test data... although tecnically a subscription is needed and I advise those that use it to get one.

                        Having spoken to them they have no plans for a PC based system that we can use so I guess its OK....

                        Terran
                        My Project Site

                        Comment


                        • #13
                          New service from our Highways agency.. http://www.highways.gov.uk/rssfeed/rss.xml

                          More info inc a PC client... http://www.highways.gov.uk/traffic/11253.aspx

                          Terran
                          My Project Site

                          Comment


                          • #14
                            Rate Limit

                            The Traffic Web Service is limited to 50,000 queries per IP address per day. See information on rate limiting.
                            .______
                            | '_ |__\___
                            [(o)|___(o)] XB
                            ._________
                            | I__I I_I|_\__I
                            [(o)______(o)]b VanPimpin'

                            LostReceptions Apps D/L Here

                            GPSGasoline- Rewriting

                            Draw- SkribblePad for Touchscreens

                            iGQwerty-iG3.0 Qwerty Keyboard

                            CarPCNetwork

                            Comment


                            • #15
                              http://www.traffic.com/feeds/rss_washingtondc.xml

                              for the washington dc metro area in the US
                              mp3Car.com Senior Tech Blogger (Want a product reviewed? Contact me.)
                              Follow Me on Twitter or Facebook
                              Live mp3Car Facebook Chat

                              Comment

                              Working...
                              X