Page MenuHomePhabricator

Wikimedia maps url schema needs to support coordinates
Closed, DeclinedPublic

Description

This is a blocker for T113438

Currently wikimedia maps has an url schema that asks for Web Mercator grid coordinates. This creates a problem with implementing a link to wikimedia maps through geohack. Geohack uses longitude and latitude coordinates - in a decimal degree format, which are passed through the template parameters {latdegdec} and {longdegdec}.

Geohack could, as is, link to static images, but not to the map itself.

For example, wikimedia maps needs to supports links like this one (this one is using the coordinate of Reykjavík (Iceland's capital)):
https://maps.wikimedia.org/osm-intl/6/-21.936389/64.1475.png

Event Timeline

Snaevar raised the priority of this task from to Needs Triage.
Snaevar updated the task description. (Show Details)
Snaevar added a project: Maps.
Snaevar subscribed.
Restricted Application added subscribers: StudiesWorld, Aklapper. · View Herald Transcript
Yurik claimed this task.
Yurik subscribed.

@Snaevar, the /style/zoom/x/y.png format is specifically for tiles that are addressable as two integers, which is not what you need here. You need to be able to show either a static or a dynamic map in geohack.

For static, use https://maps.wikimedia.org/img/osm-intl,6,64.1475,-21.936389,800x600.png
For a link, use https://maps.wikimedia.org/#6/64.147/-21.936
For a dynamic map, you will need to include leaflet library into geohack and point it to the tile server