diff --git a/hamburg/hamburg.py b/hamburg/hamburg.py index 027aed3..d7d529f 100644 --- a/hamburg/hamburg.py +++ b/hamburg/hamburg.py @@ -115,7 +115,6 @@ async def park_and_ride( "p_und_r/collections/p_und_r/items", params={"limit": limit, "bulk": bulk}, ) - print(locations) for item in locations["features"]: results.append(ParkAndRide.from_json(item)) return results diff --git a/hamburg/models.py b/hamburg/models.py index b7549cc..896a980 100644 --- a/hamburg/models.py +++ b/hamburg/models.py @@ -68,6 +68,7 @@ class ParkAndRide: occupancy_percentage: float disabled_parking_spaces: int tickets: dict[str, int] + url: str longitude: float latitude: float updated_at: datetime @@ -101,6 +102,7 @@ def from_json(cls, data: dict[str, Any]) -> ParkAndRide: "month": attr.get("ticket_30_tage"), "year": attr.get("ticket_1_jahr"), }, + url=attr.get("homepage"), longitude=geo[0], latitude=geo[1], updated_at=datetime.strptime(