freemap-v3-react
freemap-v3-react copied to clipboard
Urls could contain coordinates encoded by geohash
if coordinates in url are stored using geohash they could become substantially shorter. consider this: https://www.freemap.sk/?map=16/48.161649/17.165365&layers=Tt&distance-measurement-points=48.157183/17.172993,48.156675/17.166685,48.156252/17.166728,48.156209/17.165805,48.156292/17.165585,48.156077/17.164904,48.156056/17.163997,48.156295/17.163783 becoming (precision=10) https://www.freemap.sk/?map=16/u2s1yxe3vy&layers=Tt&distance-measurement-points=u2s1yy8zzt,u2s1ywskuy,u2s1yws6tb,u2s1ywef20,u2s1ywedep,u2s1ywe17r,u2s1ywd3q5,u2s1ywd6c0 that's 248 characters vs 167.
ref: https://www.movable-type.co.uk/scripts/geohash.html
what about geobuf: https://github.com/mapbox/geobuf ?
it's even shorter, plus more used in OSRM routing.
geobuf is a binary encoding so you'd still need to transcode it to ascii therefore i don't think it would help much
...for all other things there's bit.ly ;-)
shortening service (like the one overpass turbo has) would be nice too. the question is whether it's not too much to ask.
Anything can be asked. Low priority label to the rescue. Pull requests are of course welcome ;-). For now you can also use eg. https://chrome.google.com/webstore/detail/bitly-unleash-the-power-o/iabeihobmhlgpkcgjiloemdbofjbdcic?hl=en