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

Vector Tiles | MapBox exceed API requests - self host instead #21

Open
sysoppl opened this issue Sep 20, 2021 · 15 comments · Fixed by #22
Open

Vector Tiles | MapBox exceed API requests - self host instead #21

sysoppl opened this issue Sep 20, 2021 · 15 comments · Fixed by #22
Labels
help wanted Extra attention is needed

Comments

@sysoppl
Copy link
Owner

sysoppl commented Sep 20, 2021

We are using free tier of MapBox API, and it has limits which now exceeds.

PLEASE REFRESH WEBSITE IF IT SHOWS NO MAP!

@sysoppl sysoppl pinned this issue Sep 20, 2021
@sysoppl
Copy link
Owner Author

sysoppl commented Sep 20, 2021

MapBox is now charging me for API requests which is not good
image

@sysoppl
Copy link
Owner Author

sysoppl commented Sep 20, 2021

For now I will continue to host this service

@sysoppl sysoppl changed the title MapBox API exceed API limit for Vector Tiles API MapBox exceed API limit for Vector Tiles API Sep 20, 2021
@nonta1234
Copy link
Contributor

I'm not sure if it's good, but I suggest using multiple people's tokens.

@nonta1234
Copy link
Contributor

Hi sysoppl
I'm trying to avoid making requests to the API by caching the downloaded Vector Tiles and loading it from the cache next time.

@sysoppl
Copy link
Owner Author

sysoppl commented Sep 26, 2021

Hey, thank you for your effort!

@sysoppl
Copy link
Owner Author

sysoppl commented Oct 13, 2021

image
image

This is very big issue right now. I might close this project due to too much api requests it is generating now. Waiting for any feedback from you guys

@sysoppl sysoppl reopened this Oct 13, 2021
@sysoppl sysoppl pinned this issue Oct 13, 2021
@sysoppl
Copy link
Owner Author

sysoppl commented Oct 13, 2021

https://github.com/maputnik/osm-liberty
https://github.com/openmaptiles/openmaptiles

These two seems to be good to get rid of mapbox. Any help with implementing them will be great

@sysoppl sysoppl added the help wanted Extra attention is needed label Oct 13, 2021
@sysoppl sysoppl changed the title MapBox exceed API limit for Vector Tiles API Vector Tiles | MapBox exceed API - self host instead Oct 13, 2021
@sysoppl sysoppl changed the title Vector Tiles | MapBox exceed API - self host instead Vector Tiles | MapBox exceed API requests - self host instead Oct 13, 2021
@nonta1234
Copy link
Contributor

Hi
The fact that many requests despite the built-in cache control means that users are often downloading new regions. After all, I think that it is necessary to create a mirror site with another access token or replace the access token regularly.

@sysoppl
Copy link
Owner Author

sysoppl commented Oct 13, 2021

I just created 4 tokens that will be used for one week, but that's not ideal - it will be painful to create new mail every month... I just found self-hosted solution (#21 (comment)), but IDK if it can be implemented - so help wanted :)

I can host everything - I've got plenty of space and power on new server

@nonta1234
Copy link
Contributor

Oh...that's true.
Would you like to stop using vector tiles and consider using OSM?

@sysoppl
Copy link
Owner Author

sysoppl commented Oct 13, 2021

If that is possible - yes. As I read in https://github.com/openmaptiles/openmaptiles I can create vector tiles for all globe with docker, so it should be easy for me as I mainly use docker and selfhost everything. Next question is how to use these files with this heightmap generator

@nonta1234
Copy link
Contributor

Vector Tiles are only used to extract the water area, so you don't currently need files for all layers.

http://hydro.iis.u-tokyo.ac.jp/~yamadai/OSM_water/v2.0_2021Feb/OSM_WaterLayer.pbf

Because the size is too large as it is, if you can tiling the data on the above sites, you can manage it in a smaller size. I don't know the difference between OSM data and Mapbox Vector Tile specifications, but I can load it as long as I have tiles.

@sysoppl
Copy link
Owner Author

sysoppl commented Oct 22, 2021

So i generated some tiles and will upload here later, what else can I do, any ideas? Map is not working again, so this need to be implemented asap

@sysoppl
Copy link
Owner Author

sysoppl commented Oct 22, 2021

Map was not working again, so another API key was send to trash

Here are tiles generated by openmaptiles (https://github.com/openmaptiles/openmaptiles):
https://heightmap.skydark.pl/tiles.zip

@123ysys
Copy link

123ysys commented Apr 4, 2024

Seems that the API cost is a huge problem to site owner. I just registered my mapbox account and is going to self-hosting. How can I replica your website on my windows 10?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants