S = (all => [@EXPORT_OK], constants => [@CONSTANTS]);
use HTML::TreeBuilder;
use HTTP::Tiny;
use JSON::MaybeXS;
use Time::Piece;
our $STOPS_URL = 'http://www.buscms.com/Nimbus/operatorpages/widgets/
ormat=jsonp&cachebust=123&sourcetype=siri&requestor=Netescape&includeTimestamp=true&_=%d';
our $DEPART_TIME_FORMAT = '%d/%m/%Y %T';
our $NEXTBUS_URL = 'http://nextbus.brookes.ac.uk/%s?format=json&%s';
result->{reason} unless $result->{success};
my $json = $result->{content};
$json = substr $json, 3, (length $json) - 5;
my $stops = decode_json($json)->{stops};
wantarray ? @$stops : $stops
}
sub