timwaters / mapwarper

free open source public map georeferencer, georectifier and warper
http://mapwarper.net
MIT License
193 stars 79 forks source link

Add "translate and redirect" capability #168

Closed jidanni closed 4 years ago

jidanni commented 5 years ago

Perhaps there is a use case for, not actually serving map tiles, but just translating tile URLs. E.g, for https://github.com/openstreetmap/iD/issues/6198

Mapwarper could get a request for a tile, and return an HTTP redirect to the translated tile.

E.g., a request comes in for http://mapwarper.net/maps/tile/99999/{z}/{x}/{y}.jpg and mapwarper responds with a HTTP redirect to http://nurdsburg.barf/Tile/RSImage/Airplane/mmm/{z}/{y}/{x-1}.jpg or whatever the user had specified in his translator template.

timwaters commented 5 years ago

https://github.com/timwaters/whoots might be a better place for this - or something similar like map proxy?

jidanni commented 5 years ago

Hmm, and add ability to even translate the toughest coordinates, and ability to just generate HTTP redirects...