komoot / staticmap

A small, python-based library for creating map images with lines, markers and polygons.
https://www.komoot.com
Other
290 stars 65 forks source link

Samples not able to download tiles #33

Closed jonakirke94 closed 1 year ago

jonakirke94 commented 1 year ago

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 commented 1 year ago

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

I guess Komoot is no longer available?

lukaswelte commented 1 year ago

@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 commented 1 year ago

@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 .