Skip to content

Commit

Permalink
Merge pull request #774 from Ephtolens/master
Browse files Browse the repository at this point in the history
Fix YeloVelo
  • Loading branch information
eskerda authored Dec 9, 2024
2 parents 8d1a9a7 + caaf4ac commit 2109db0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pybikes/yelovelo.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,10 @@ def __init__(self, data):
super(YeloVeloStation, self).__init__()

station_data = data['fields']
lat = station_data['station_latitude'].replace(',', '.')
lng = station_data['station_longitude'].replace(',', '.')

self.name = station_data['station_nom']
self.latitude = float(lat)
self.longitude = float(lng)
self.latitude = station_data['station_latitude']
self.longitude = station_data['station_longitude']
self.bikes = int(station_data['velos_disponibles'])
self.free = int(station_data['accroches_libres'])
self.extra = {
Expand Down

0 comments on commit 2109db0

Please sign in to comment.