Opendata::GTFS::Feed - Parse General Transit Feeds (GTFS)
Version 0.0202, released 2016-02-28.
use Opendata::GTFS::Feed;
my $feed = Opendata::GTFS::Feed->parse(file => 'a-gtfs-feed.zip', directory => 'feed');
Opendata::GTFS::Feed is an easy way to parse GTFS feeds.
All list attributes has the Array trait. Currently the following public methods are created for those attributes:
elements
->all_$attribute
, where$attribute
is the attribute name.count
->count_$attribute
AbsPath | optional | read-only |
If file is given, the feed in the file will be parsed.
Uri | optional | read-only |
If url is given, the feed at the url will be fetched and parsed.
AbsPath | optional | read-only |
If only directory is given, it is expected to find a fully extracted feed in that directory. If C is given together with either file or url, the feed will be extracted into that directory (and remain there).
ArrayRef [ Agency ] | not in constructor | read-only |
ArrayRef [ CalendarDate ] | not in constructor | read-only |
ArrayRef [ Calendar ] | not in constructor | read-only |
ArrayRef [ FareAttribute ] | not in constructor | read-only |
ArrayRef [ FareRule ] | not in constructor | read-only |
ArrayRef [ Frequency ] | not in constructor | read-only |
ArrayRef [ Route ] | not in constructor | read-only |
ArrayRef [ Shape ] | not in constructor | read-only |
ArrayRef [ StopTime ] | not in constructor | read-only |
ArrayRef [ Stop ] | not in constructor | read-only |
ArrayRef [ Transfer ] | not in constructor | read-only |
ArrayRef [ Trip ] | not in constructor | read-only |
https://github.com/Csson/p5-Opendata-GTFS-Feed
https://metacpan.org/release/Opendata-GTFS-Feed
Erik Carlsson info@code301.com
This software is copyright (c) 2016 by Erik Carlsson.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.