Skip to content

Commit

Permalink
Remove IDs from popups
Browse files Browse the repository at this point in the history
GBFS now specifies that IDs should change after each trip, for privacy reasons.

See here: MobilityData/gbfs#147
  • Loading branch information
chris-sarli committed Jun 26, 2020
1 parent ec8e9f0 commit e4830d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Feed.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,8 @@ export function dissolve(json) {
let toAdd = [function () {
switch (i) {
case "id":
return {"ID": json[i]};
// GBFS is moving away from using statically assigned IDs
return {};
case "lat":
return {"Latitude": precise_round(parseFloat(json[i]), 3)};
case "lon":
Expand Down

0 comments on commit e4830d8

Please sign in to comment.