TomasMahdal / MapyCZAerials

Tool for the use of Mapy.cz aerials in OMSI and LOTUS simulators
GNU General Public License v2.0
1 stars 0 forks source link

Mapy.CZ API endpoint is dead #5

Open TomasMahdal opened 1 year ago

TomasMahdal commented 1 year ago

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

image

VlastikYoutubeKo commented 1 year ago

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 commented 4 months ago

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