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

Consider adding Strava Heat Map information as a data-overlay in Rapid. #1462

Open
Bonkles opened this issue Jun 8, 2024 · 4 comments
Open
Labels
bluesky Bluesky issues are extra challenging - this might take a while or be impossible

Comments

@Bonkles
Copy link
Contributor

Bonkles commented Jun 8, 2024

Description

This feature request came to us by way of a community member at State of the Map US 2024. THe idea would be to integrate Strava's heatmap information in the 'Background Settings -> Overlays' menu.

We investigated a couple of possibilities on the convention floor- one is iD Strava Heatmap, which dynamically inserts the options into iD's background settings menu. We examined the API headers being sent back from the imagery server there and found that the Access-Control-Allow-Origin headers are being set as only allowing strava.com. Thus, it would be very difficult for us to use it in our webGL canvas as overlay imagery.

We also took a quick look to see if perhaps there was a vector data endpoint for the same strava heatmap imagery, but there does not appear to be one.

@bhousel bhousel added the bluesky Bluesky issues are extra challenging - this might take a while or be impossible label Jun 10, 2024
@bhousel
Copy link
Contributor

bhousel commented Jul 2, 2024

Shout out to @emersonveenstra who built this cool browser extension to add the Strava heatmap to Rapid:
https://github.com/emersonveenstra/rapid-power-user-extension

(I'm not sure how they are able to make it work, I would have expected CORS to be an issue)

@Bonkles
Copy link
Contributor Author

Bonkles commented Jul 2, 2024

Wait, what? How? I'm on vacation but have so many questions....

@emersonveenstra
Copy link
Contributor

Wait, what? How? I'm on vacation but have so many questions....

Web Extensions let you overwrite/add HTTP response headers from a site, so I added the necessary CORS header to Strava requests to make it work https://github.com/emersonveenstra/rapid-power-user-extension/blob/dev/shared/static_rules.json#L82-L84

@tsmock
Copy link
Contributor

tsmock commented Jul 18, 2024

Relevant ELI ticket: osmlab/editor-layer-index#294

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bluesky Bluesky issues are extra challenging - this might take a while or be impossible
Projects
None yet
Development

No branches or pull requests

4 participants