Closed trevorgerhardt closed 8 years ago
Hey @trevorgerhardt,
Please check again and let me know if it works for you. Thanks!
@cubbi awesome! Do you have the ability to update all of the systems? Didn't realize there was central control.
@trevorgerhardt we deployed that change across all SocialBicycles systems - you mentioned monash, and it's running on our equipment, so we have been able to fix that.
Nice. So the only that fails now is BCycle's Heartland: https://gbfs.bcycle.com/bcycle_heartland/gbfs.json
Anyone from BCycle around who can make this change?
cc @jasongdove @mplsmitch
All BCycle systems have been updated.
:+1:
Last week I threw together this: https://github.com/trevorgerhardt/gbfs-map to explore the participating GBFS networks. Initially, I wanted to just pull in the data on page load in the front end, first querying the
systems.csv
file in this repo and then pulling in thegbfs.json
file for a system when it was needed. A problem that quickly arose is that certain CORS settings disallow direct requests from a browser. To see an example I queried the Cabigbfs.json
from the Chrome console and it worked, but the Monash system failed.If each system added to their OPTIONS header:
Access-Control-Allow-Origin: *
, we wouldn't need to proxy through an additional system.Learn more about CORS here: https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS