QuickOSM icon indicating copy to clipboard operation
QuickOSM copied to clipboard

Open short link from OverpassTurbo

Open Gustry opened this issue 11 years ago • 3 comments

To be able to open this kind of link : http://overpass-turbo.eu/s/4n5

Gustry avatar Jul 30 '14 12:07 Gustry

Nice idea! :+1:

As you probably already know, a short URL will resolve to a longer URL via a HTTP/301 redirection. One complication, though: While this URL format is basically documented here, there are some undocumented parameters that will make implementing this ticket a little bit hard, I'm afraid. While short queries will be provided via the Q parameter as documented, overpass turbo will create URLs with a q parameter for longer queries. Because URL lengths have an upper limit in practice, this q parameter contains a compressed version of the query (technically it is a Base64 encoded LZW compressed string). The same is true for the lower case c parameter, which shaves off a few characters by "compressing" the map position coordinates. The only documentation for those two parameters is the source code of overpass turbo, I'm afraid. But if you need help, I can point you to the relevant pieces of code.

tyrasd avatar Oct 24 '14 17:10 tyrasd

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jun 07 '19 08:06 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jun 08 '19 09:06 stale[bot]