Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Jump data to fix map #8

Merged
merged 5 commits into from
Dec 22, 2019
Merged

Remove Jump data to fix map #8

merged 5 commits into from
Dec 22, 2019

Conversation

alulsh
Copy link
Owner

@alulsh alulsh commented Dec 22, 2019

This PR fixes the map for this project. Uber acquired JUMP, which meant that their API moved from dc.jumpmobility.com to gbfs.uber.com. Unfortunately, this new Uber endpoint does not allow for cross-origin resource sharing, so it can no longer be used client-side in this project (#7).

This project now only displays Capital Bikeshare data.

Breakdown of changes:

  • Updates API endpoint URL in scripts/jump.js from https://dc.jumpmobility.com/opendata/free_bike_status.json to https://gbfs.uber.com/v1/dcb/free_bike_status.json
  • Removes Jump API from index.html and map.js due to client-side CORS error
  • Removes interactivity and visibility selector for data sets
  • Loads Capital Bikeshare data by default
  • Updates README.md with a note about CORS error with the Jump API

@alulsh alulsh merged commit 5d20bbd into master Dec 22, 2019
@alulsh alulsh deleted the fix-map branch December 22, 2019 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant