Generate a neshan map link with directions using latitude and longitude

Viewed 67

I want to create a link using latitude and longitude for neshan app to use on the web.

the redirectLink variable is not work in neshan.org

   const redirectLink = `https://neshan.org/maps/@35.699658,51.390640,15.3z,0.0p/routing/destination/${lat},${lng}`;
    const shareData = {title: name, text: address, url: redirectLink}
    
    try {
        await navigator.share(shareData)
    } catch (err) {
        console.error("Share is Failed", err);
    }
0 Answers
Related