alulsh / dc-micromobility-by-neighborhood

Explore DC micromobility service (bikeshare and scooters) availability by neighborhood.
https://www.alexandraulsh.com/dc-micromobility-by-neighborhood/
MIT License
9 stars 0 forks source link

CORS error with Jump GBFS feed #7

Open alulsh opened 4 years ago

alulsh commented 4 years ago

The Jump free bike API endpoint migrated from https://dc.jumpmobility.com/opendata/free_bike_status.json to https://gbfs.uber.com/v1/dcb/free_bike_status.json as part of Uber's acquisition of Jump.

This new Uber endpoint does not allow cross-origin resource sharing (CORS). It returns a CORS error when used in client-side JavaScript.

The Uber API does have documentation on setting an origin URI in your approved application for CORS. It's not clear whether this applies only to the Uber Riders API or also to the Jump GBFS feed though. Access to the Uber API requires approval from Uber.

alulsh commented 2 years ago

The API endpoint for Lime/Jump is now https://data.lime.bike/api/partners/v1/gbfs/washington_dc/free_bike_status.json. The API endpoint is listed on DDOT's Dockless API page, but CORS is still blocked:

Screen Shot 2021-12-27 at 12 08 19 PM