Solved How to create marker on URL
-
@rittels Thanks, I test it and tell you π
-
@rittels
I have a shift of 7 second North and 11 second West between the real position and Windy position.
What should I correct in your code to obtain an identical position?
Thanks again for the code, it's cool π -
That happens, because the max resolution of the alphanum code is 0.01deg, thus 36 seconds (about 1km).
made code a bit shorter:
function createCoordCode(coords){ let ar=[]; for (let i=98;i < 123;i++)ar.push(String.fromCharCode(i)); for (let i=65;i < 91;i++)ar.push(String.fromCharCode(i)); for (let i=0;i < 9;i++)ar.push(i); let lat=Math.round(100*(coords.lat+90)); let lon=Math.round(100*(coords.lon+180)); return "m:" +ar[Math.floor(lat/3600)] +ar[Math.floor((lat%3600)/60)] +ar[lat%60]+"a" +ar[Math.floor(lon/3600)] +ar[Math.floor((lon%3600)/60)] +ar[lon%60]; } console.log(createCoordCode({lat:38,lon:-30}));
-
@rittels
ok understood, thanks for everything π -
@rittels
In place and functional, thanks π -
Hi, guys we will give the option to share the picker in URL. It will be possible very soon by adding d:picker` into the URL.
-
@TomSlavkovsky
Hi TomSlavkovsky,
will you share the info here when it's possible?
Thanks π -
@GeGaX @rittels It's now possible to open Windy with picker.
Also recommend to check following topic: https://community.windy.com/topic/77/windy-com-url-parameters
-
@TomSlavkovsky
Thanks for this improvement, it works very well ;)
The GPS coordinates displayed, by the picker, are translated exactly as those sent despite the truncated display in the address bar, it's perfect !@rittels
Thanks again for the JS code which has helped me well until here.
(And in addition I discovered the GeoHash system ;p) -
Cool. Thanks!! Works well.
Can we mount plugins yet? I see we can open an airport from path.