{"id":15433043,"url":"https://github.com/simonw/url-map","last_synced_at":"2025-04-14T17:43:28.691Z","repository":{"id":66508278,"uuid":"502476712","full_name":"simonw/url-map","owner":"simonw","description":"Use URL parameters to generate a map with markers, using Leaflet and OpenStreetMap","archived":false,"fork":false,"pushed_at":"2024-04-05T17:55:31.000Z","size":15,"stargazers_count":56,"open_issues_count":4,"forks_count":5,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-14T17:43:26.928Z","etag":null,"topics":["leaflet","shot-scraper"],"latest_commit_sha":null,"homepage":"https://map.simonwillison.net","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simonw.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-06-11T23:23:46.000Z","updated_at":"2025-02-12T21:26:17.000Z","dependencies_parsed_at":"2024-10-20T20:19:17.298Z","dependency_job_id":null,"html_url":"https://github.com/simonw/url-map","commit_stats":{"total_commits":13,"total_committers":1,"mean_commits":13.0,"dds":0.0,"last_synced_commit":"a13d9334d9978585a93064df21ae0a0e86fc8541"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonw%2Furl-map","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonw%2Furl-map/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonw%2Furl-map/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonw%2Furl-map/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simonw","download_url":"https://codeload.github.com/simonw/url-map/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248930036,"owners_count":21184941,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["leaflet","shot-scraper"],"created_at":"2024-10-01T18:30:46.776Z","updated_at":"2025-04-14T17:43:28.666Z","avatar_url":"https://github.com/simonw.png","language":"HTML","funding_links":[],"categories":["HTML"],"sub_categories":[],"readme":"# url-map\n\nUse URL parameters to generate a map with markers, using Leaflet and OpenStreetMap\n\nVisit it here: https://map.simonwillison.net/\n\nRead about the project's background in [A tiny web app to create images from OpenStreetMap maps](https://simonwillison.net/2022/Jun/12/url-map/)\n\n## Parameters\n\nTo center the map on a specific location, add `?center=lat,lon`. To set the zoom, use `?zoom=8`.\n\n- https://map.simonwillison.net/?center=51.49,0\u0026zoom=8\n\nAs an alternative to a latitude and longitude you can use `?q=` to provide text which will be looked up against the [OpenStreetMap Nominatim API](https://nominatim.openstreetmap.org/ui/search.html). The map will then zoom to the best available bounding box for the first matching result:\n\n- https://map.simonwillison.net/?q=san+francisco\n- https://map.simonwillison.net/?q=islington+london\n\nIf you add a `\u0026zoom=` to that the zoom you specify will be used instead of the automatic zoom calculated using the bounding box:\n\n- https://map.simonwillison.net/?q=islington+london\u0026zoom=12\n\nTo add markers to the map, use `?marker=lat,lon`. You can pass this multiple times:\n\n- https://map.simonwillison.net/?center=51.49,0\u0026zoom=8\u0026marker=51.49,0\u0026marker=51.3,0.2\n\n## Using this with shot-scraper\n\nYou can use this tool to create static map images using [shot-scraper](https://shot-scraper.datasette.io/). For example:\n\n```\nshot-scraper 'https://map.simonwillison.net/?center=51.49,0\u0026zoom=8\u0026marker=51.49,0\u0026marker=51.3,0.2' \\\n  --retina --width 600 --height 400 --wait 3000\n```\nProduces this image:\n\n![A map of London with two blue markers](https://user-images.githubusercontent.com/9599/173208299-b44c34f1-887b-48b7-86d8-4038945ec80f.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonw%2Furl-map","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimonw%2Furl-map","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonw%2Furl-map/lists"}