{"library":"staticmap","title":"StaticMap","type":"library","description":"A small, Python-based library for creating static map images with lines and markers. Current version 0.5.7 (last released March 2020). Development appears to be in maintenance mode with no recent releases.","language":"python","status":"maintenance","last_verified":"Fri May 01","install":{"commands":["pip install staticmap"],"cli":null},"imports":["from staticmap import StaticMap","from staticmap import CircleMarker","from staticmap import Line"],"auth":{"required":false,"env_vars":[]},"links":{"homepage":null,"github":"https://github.com/komoot/staticmap","docs":null,"changelog":null,"pypi":"https://pypi.org/project/staticmap/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null},"quickstart":{"code":"from staticmap import StaticMap, CircleMarker, Line\n\nm = StaticMap(600, 400, url_template='https://tile.openstreetmap.org/{z}/{x}/{y}.png')\nmarker = CircleMarker((13.405, 52.52), 'blue', 12)\nm.add_marker(marker)\nline = Line([(13.4, 52.5), (13.41, 52.53)], 'red', 2)\nm.add_line(line)\nimage = m.render()\nimage.save('map.png')","lang":"python","description":"Creates a map with a marker and a line, saved to map.png.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}