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

Add GeoJSON endpoint #21

Open
grafael opened this issue Jan 31, 2023 · 1 comment
Open

Add GeoJSON endpoint #21

grafael opened this issue Jan 31, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@grafael
Copy link
Collaborator

grafael commented Jan 31, 2023

We would like to have an API like https://stats.storjshare.io/nodes_geo.json but using the GeoJSON format.

AC:

  • Refactor nodes_geo.json data to GeoJSON format

Notes:
Example on how to create GeoJSON output: https://gist.github.com/kaloyan-raev/c3dd95f2347a8d49f882b5576508f294

@grafael grafael added the enhancement New feature or request label Jan 31, 2023
@kaloyan-raev
Copy link
Member

kaloyan-raev commented Jan 31, 2023

Currently, https://stats.storjshare.io/nodes_geo.json reports the coordinates separately for every satellite. It is best to have a single valid GeoJSON object - perhaps, one aggregated for all satellites.

This way, we could load it directly to compatible tools with a direct URL:

https://geojson.io/#data=data:text/x-url,http%3A%2F%2Fstats.storjshare.io%2Fnodes_geo.json

Note, to make the above URL work, we have to ensure that CORS is enabled on https://stats.storjshare.io.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants