NAME
OpenGbg::Service::StyrOchStall::Station - A Styr och Ställ station
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.
AUTHOR
Erik Carlsson <info@code301.com>
COPYRIGHT
Copyright 2014 - Erik Carlsson
LICENSE
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.