NAME
OpenGbg::Service::StyrOchStall::Station - Data on a bike station
VERSION
Version 0.1404, released 2018-05-19.
SYNOPSIS
my $service = OpenGbg->new->styr_och_stall;
my $station = $service->get_bike_stations->get_by_index(2);
printf 'Free bikes: %d', $station->free_bikes;
ATTRIBUTES
id
Integer. The station id.
label
String. The station/location name.
lat
long
Decimal degrees. The location of the station.
capacity
Integer. Maximum number of bikes.
free_bikes
Integer. Number of available bikes.
free_stands
Integer. Number of open stands.
state
String. Can be open
, closed
, maintenance
or construction
.
empty
Boolean. Returns true if there is no bike available.
full
Boolean. Returns true if there is no room to return a bike to.
METHODS
to_text()
Returns a string with the station data in a table.
SOURCE
https://github.com/Csson/p5-OpenGbg
HOMEPAGE
https://metacpan.org/release/OpenGbg
AUTHOR
Erik Carlsson <info@code301.com>
COPYRIGHT AND LICENSE
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.