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

Mapy.CZ API endpoint is dead #5

Open
TomasMahdal opened this issue Feb 4, 2023 · 2 comments
Open

Mapy.CZ API endpoint is dead #5

TomasMahdal opened this issue Feb 4, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@TomasMahdal
Copy link
Owner

TomasMahdal commented Feb 4, 2023

The server with map tiles from mapy.cz is unavailable. It will be necessary to find another source of map data.

image

@TomasMahdal TomasMahdal added the bug Something isn't working label Feb 4, 2023
@VlastikYoutubeKo
Copy link

VlastikYoutubeKo commented Feb 4, 2023

Hi, it is sad that Mapy.cz did this :(
Hoping for you to find another way! btw Their reasoning is:

The Mapy.cz API can be used for free only in the way described in the documentation, i.e. using prepared Javascript libraries.

Direct access to Mapy.cz resources is not allowed (and never has been in the past). This includes e.g. linking map tiles to Leaflet, direct calls to the server function for whispering, etc...)

Due to increasing cases of abuse and overuse, we are starting to technically restrict direct access to Mapy.cz resources.

If this restriction applies to your project, we recommend switching to the standard use of the api according to

https://api.mapy.cz/
....

@VlastikYoutubeKo
Copy link

Update:
Found out we can get free API key from mapy.cz, and use a URL in OMSI that would give mapy.cz's tiles.

the URLs:
'Basic': https://api.mapy.cz/v1/maptiles/basic/256/~z/~x/~y?apikey=KEY
'Outdoor': https://api.mapy.cz/v1/maptiles/outdoor/256/~z/~x/~y?apikey=KEY
'Winter': https://api.mapy.cz/v1/maptiles/winter/256/~z/~x/~y?apikey=KEY
'Aerial': https://api.mapy.cz/v1/maptiles/aerial/256/~z/~x/~y?apikey=KEY

Where to get the key?
Here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants