fossasia / fossasia/geolocation

Use the recommended OSM Tile Server URL scheme

Open
#31 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.5k
Forks
43
PR merge metrics
No merged PRs in 30d

Description

> TL;DR: Please use https://tile.openstreetmap.org/{z}/{x}/{y}.png - no subdomains and no short names. For more details, see the related [issue][issue]

Historically, the use of subdomains (i.e. `a.tile.openstreetmap.org`) or shortened domain names for the tile server URLs (i.e. `b.tile.osm.org`) has been a standard practice.

However, since the modernised OpenStreetMap Tile server supports HTTP/2 and HTTP/3, the old a|b|c aliases are no longer needed to increase browser connection concurrency.

Besides, using single hostname improves cache efficiency and reduces operational complexity. That's why, the new preferred URL scheme for the OSM Tiles is now `https://tile.openstreetmap.org/{z}/{x}/{y}.png`. The old URLs add maintenance burden and may stop working in the future.

I made the relevant changes, and created a PR for this issue.

[issue]: https://github.com/openstreetmap/operations/issues/737

Contributor guide

No contributing guide indexed for this repository

Research direction

Search the repository for tile.openstreetmap.org, tile.osm.org, and a/b/c tile-server URL forms. Update the existing tile references to use the single recommended URL scheme, then verify that no old subdomain or shortened-domain forms remain.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
web-dev
Issue type
Refactor
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.