Name : perl-WebService-Nextbus-Agency
| |
Version : 0.12
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp155.7.1
| Date : 2023-07-20 17:51:41
|
Group : Development/Libraries/Perl
| Source RPM : perl-WebService-Nextbus-Agency-0.12-lp155.7.1.src.rpm
|
Size : 0.03 MB
| |
Packager : https://www_suse_com/
| |
Summary : Superclass for data structures designed for Nextbus website (www.nextbus.com)
|
Description :
WebService::Nextbus::Agency implements a basic data structure for storing and retrieving information on the various agencies monitored by the Nextbus website (www.nextbus.com). Nextbus provides a GPS system for predicting the arrival times of transit vehicles. In order to screen scrape the website effectively, one must be familiar with the GET arguments used by the site. This module provides the data structure for storing this info once it has been determined for a particular transit agency.
The the /SYNOPSIS manpage indicates how the object can be used to retrieve the GET argument that the website requires for returning GPS information for a particular stop on a particular route of the sf-muni agency. There are basically two methods: determine the relevant GET arguments by screen scraping the Nextbus website using the WebService::Nextbus manpage, or load a prepared data structure from a helper subclass.
So far, only the the WebService::Nextbus::Agency::SFMUNI manpage subclass has been implemented. With the screen scraping of WebService::Nextbus available, however, it should be simple to create more helper subclasses by running WebService::Nextbus->buildAgency for the agency of choice and then using Storable to serialize the resulting routes tree for retrieval by the new helper subclass.
Once the proper GET code has been retrieved, a web useragent can use the argument to build a URL for the desired information. This useragent function will probably eventually be incorporated into the WebService::Nextbus manpage, which is already a the LWP::UserAgent manpage.
The entire functionality of this module will eventually be made obsolete by the anticipated development of an official WebService (W3C standard) by the Nextbus team. However, this is useful in the interim, and if Nextbus ends up charging for their service, then this will continue to be developed.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-W/15.5/noarch |