{"id":15058837,"url":"https://github.com/zaczero/osm-shortlink","last_synced_at":"2026-02-01T02:33:15.081Z","repository":{"id":256361951,"uuid":"854759677","full_name":"Zaczero/osm-shortlink","owner":"Zaczero","description":"OpenStreetMap shortlink encoder and decoder","archived":false,"fork":false,"pushed_at":"2024-12-18T20:02:23.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T22:55:29.226Z","etag":null,"topics":["decoder","encoder","openstreetmap","shortlink"],"latest_commit_sha":null,"homepage":"https://pypi.org/p/osm-shortlink","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"0bsd","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Zaczero.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2024-09-09T18:20:42.000Z","updated_at":"2024-12-18T20:02:26.000Z","dependencies_parsed_at":"2024-09-10T10:26:26.466Z","dependency_job_id":null,"html_url":"https://github.com/Zaczero/osm-shortlink","commit_stats":null,"previous_names":["zaczero/osm-shortlink"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zaczero%2Fosm-shortlink","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zaczero%2Fosm-shortlink/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zaczero%2Fosm-shortlink/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zaczero%2Fosm-shortlink/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Zaczero","download_url":"https://codeload.github.com/Zaczero/osm-shortlink/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248225652,"owners_count":21068078,"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":["decoder","encoder","openstreetmap","shortlink"],"created_at":"2024-09-24T22:31:33.275Z","updated_at":"2026-02-01T02:33:15.036Z","avatar_url":"https://github.com/Zaczero.png","language":"Rust","funding_links":["https://liberapay.com/Zaczero/","https://github.com/sponsors/Zaczero"],"categories":[],"sub_categories":[],"readme":"# osm-shortlink\n\n![Python Free-Threaded Compatible](https://shields.monicz.dev/badge/Free--Threaded-Compatible-blue?logo=Python\u0026logoColor=f0c74c)\n[![PyPI - Python Version](https://shields.monicz.dev/pypi/pyversions/osm-shortlink)](https://pypi.org/project/osm-shortlink)\n[![Liberapay Patrons](https://shields.monicz.dev/liberapay/patrons/Zaczero?logo=liberapay\u0026label=Patrons)](https://liberapay.com/Zaczero/)\n[![GitHub Sponsors](https://shields.monicz.dev/github/sponsors/Zaczero?logo=github\u0026label=Sponsors\u0026color=%23db61a2)](https://github.com/sponsors/Zaczero)\n\nFast and correct OpenStreetMap shortlink encoder and decoder implementation in Rust with Python bindings. Shortlinks allow you to represent a location on the map with a short code.\n\n## Installation\n\nPre-built binary wheels are available for Linux, macOS, and Windows, with support for both x64 and ARM architectures.\n\n```sh\npip install osm-shortlink\n```\n\n## Basic usage\n\n```py\nfrom osm_shortlink import shortlink_encode\nshortlink_encode(0.054, 51.510, 9)  # -\u003e '0EEQhq--'\nshortlink_encode(19.579, 51.876, 19)  # -\u003e '0OP4tR~rx'\nshortlink_encode(0, 0, 23)  # ValueError: Invalid zoom: must be between 0 and 22, got 23\n\nfrom osm_shortlink import shortlink_decode\nshortlink_decode('0EEQhq--')  # -\u003e (0.054, 51.510, 9)\nshortlink_decode('0OP4tR~rx')  # -\u003e (19.579, 51.876, 19)\nshortlink_decode('X')  # ValueError: Invalid shortlink: too short\n```\n\n## Format specification\n\n\u003chttps://wiki.openstreetmap.org/wiki/Shortlink\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzaczero%2Fosm-shortlink","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzaczero%2Fosm-shortlink","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzaczero%2Fosm-shortlink/lists"}