HI, everyone!
My customer exactly want to store link to site(object of service) by using short links from Yandex map service.
Also his want to see map inside Glide App with objects.
They provide links like https://yandex.ru/maps/-/CDUaELzY
If you go there in browser you can see full link https://yandex.ru/maps/?ll=36.981793%2C55.760561&mode=search&sll=36.982528%2C55.762611&text=55.762611%2C36.982528&utm_source=share&z=17
How can i obtain this full link in glide to parse GEO?
I have try this JS
async function expandYandexMapLink(p1) {
try {
// Load Axios using async import from skypack.dev
const { default: axios } = await import("https://cdn.skypack.dev/axios");
// Make an HTTP GET request to the short Yandex Maps link
const response = await axios.get(p1);
// Get the final URL after redirection
const finalUrl = response.request.res.responseUrl;
return finalUrl;
} catch (error) {
return "Error: " + error.message;
}
}
// Call the function with the predefined 'p1'
const result = await expandYandexMapLink(p1);
// Return the result
return result;
But unfortunately receiving “Error: Network Error” as return
Please, someone help me ?
Thanks!
p.s. Main task to fetch full link by short link and see full link in Glide column