Commit d7629166 authored by Volker Krause's avatar Volker Krause
Browse files

Parse GBFS station city property

That is technically not in the standard but an extension in the BARShare
feed, but it actually makes a lot of sense and fits our data model nicely.
parent 213a334a
Pipeline #197431 passed with stage
in 6 minutes and 36 seconds
......@@ -135,6 +135,7 @@ static void appendResults(const GBFSService &service, const LocationRequest &req
loc.setIdentifier(service.systemId, stationId);
loc.setStreetAddress(cleanAddress(station.value(QLatin1String("address")).toString()));
loc.setPostalCode(station.value(QLatin1String("post_code")).toString());
loc.setLocality(station.value(QLatin1String("city")).toString()); // non-standard extension
// TODO cover more properties
RentalVehicleStation s;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment