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

Samples not able to download tiles #33

Closed
jonakirke94 opened this issue Jul 27, 2023 · 3 comments
Closed

Samples not able to download tiles #33

jonakirke94 opened this issue Jul 27, 2023 · 3 comments

Comments

@jonakirke94
Copy link

Hi

I'm attempting to run the samples provided in the README.md with no url_template

The tileserer on http://a.tile.komoot.de/komoot-2/ appear to return 404 for all tiles.

For example this sample:

    m = StaticMap(200, 200, 80)

    coordinates = [[12.422, 45.427], [13.749, 44.885]]
    line_outline = Line(coordinates, 'white', 6)
    line = Line(coordinates, '#D2322D', 4)

    m.add_line(line_outline)
    m.add_line(line)

Raises this error:

    raise RuntimeError("could not download {} tiles: {}".format(len(tiles), tiles))
RuntimeError: could not download 2 tiles: [(16, 11, 'http://a.tile.komoot.de/komoot-2/5/16/11.png'), (17, 11, 'http://a.tile.komoot.de/komoot-2/5/17/11.png')]

Anyone experiencing the same error?

Otherwise I will have to look into another tileserver I suppose :)

@hajduakos
Copy link

I have the same issue. There was a recent commit that changed the default tile server to OSM: 6f5f9fc

I guess Komoot is no longer available?

@lukaswelte
Copy link
Member

lukaswelte commented Jul 31, 2023

@hajduakos @jonakirke94 Yes, the komoot tiles are no longer available. Please switch to a public tileset like OSM.

The komoot tiles that were referenced previously as default were not used at komoot since years, so we stopped serving them eventually.
I'm sorry we should have given a warning message. The usage numbers were almost 0, so we did not think it will affect somebody

@christophlingg
Copy link
Member

@jonakirke94 @hajduakos @lukaswelte A new version of staticmap was released on pypi 0.5.6 which uses OSM tiles instead of the komoot tiles that are not available any more. The example code in the README will work again .

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

No branches or pull requests

4 participants