Input - getSmarTraveler

This is an experimental agent. SmarTraveler uses different formats for different cities. This agent only works with some of those formats.

Description

Goes out to the SmarTraveler web site and captures traffic reports for a given area as specified in the URL. The web site at the time this was written had a web site address beginning with "http://www.smartraveler.com".
 

Configuration Variables

sourceSpec
The URL of the SmarTraveler area traffic reports. (e.g. http://www.smartraveler.com/scripts/bostraffic.asp?index=4&city=bos&cityname=Boston)

key

An optional keyword to narrow the search to a specific direction or area within a larger context; e.g. "128 NB" to select "128 NB"-tagged  information and ignore the "128 SB" information. The default is to report all traffic information at the specified city and location.

method

The method such that the keys are matched against the product Ids, which is either a string comparison (EXACT) or a substring comparison (SUBSTRING).

Product

Builds a VectorProduct who's id is the id of the channel and whos description is the description of this PIM unless a single BasicProduct is produced in which case the product will be that BasicProduct and not a VectorProduct of one item.

Every item in the product has

How it works

Tries up to three times to contact SmarTraveler. Attempts are separated by 1 minute.

Within each traffic product is a paragraph which are separated by paragraph breaks in the html page.Each traffic paragraph contains

 

Revised: 4 May 1998