Convert map links to exact geo coordinates (rather than postal addresses)
Thanks for this wonderful extension!
Looks like there's already a post address resolution in the LibRedirect but OpenStreetMap often can't understand it (for example https://maps.app.goo.gl/XwQyJ94iXyjUomwcA).
It'd be great to redirect by the geo coordinates. Here's an Android app that seems to be doing that.
Google Maps to OpenStreetMaps conversion is a big headache. Either it's a different string of base64 like above or plain co-ordinates with different subdomains. This is already one of things to be fixed. But don't expect any ETA. Sorry. Will work on this when we have time.
Well this is the main problem. The goal is to not connect to google servers. With this "encrypted url", you can't.
Maybe this can help, but IDK... It means using another service for that:
GOOGLE_LINK="https://maps.app.goo.gl/XwQyJ94iXyjUomwcA"
curl -sS -G https://mapu.retiolus.net/unshortener --data-urlencode "link=$GOOGLE_LINK" | jq
{
"approximate": false,
"full_link": "https://www.google.com/maps?q=-8.482598299999998,115.255482",
"lat": -8.482598299999998,
"long": 115.255482,
"name": "Sacred Mandala private retreat Estate",
"nominatim": false,
"searched": false,
"steps": 4,
"timestamp": 1794159919
}
The source URL redirects via 2 levels,
First source https://maps.app.goo.gl/XwQyJ94iXyjUomwcA redirects to
https://www.google.com/maps?q=%D0%A1%D0%B0%D0%BD%D1%82%D0%B0+%D0%9C%D0%B0%D0%BD%D0%B4%D0%B0%D0%BB%D0%B0,+Kelusa,+Ubud,+Kelusa,+Kec.+Payangan,+Kabupaten+Gianyar,+Bali+80561&ftid=0x2dd222cbbd52db83:0x924ca371e730d29d&entry=gps&lucs=,94224825,94227247,94227248,47071704,47069508,94218641,94203019,47084304,94208458,94208447&g_ep=CAISDTYuMTMwLjEuODIwNzAYACDXggMqWiw5NDIyNDgyNSw5NDIyNzI0Nyw5NDIyNzI0OCw0NzA3MTcwNCw0NzA2OTUwOCw5NDIxODY0MSw5NDIwMzAxOSw0NzA4NDMwNCw5NDIwODQ1OCw5NDIwODQ0N0ICSUQ%3D
then to
https://www.google.com/maps/place/Sacred+Mandala+private+retreat+Estate/@-8.4825983,115.255482,17z/data=!3m1!4b1!4m9!3m8!1s0x2dd222cbbd52db83:0x924ca371e730d29d!5m2!4m1!1i2!8m2!3d-8.4825983!4d115.255482!16s%2Fg%2F11b7wn2b11?entry=ttu&g_ep=EgoyMDI2MTEwNC4wIKXMDSoASAFQAw%3D%3D
Libredirect captures the middle one, not the final destination.
@vlnst , API is good. But the goal of Libredirect is too hit OSM without going through 3rd party services and do things locally.
Problem is URL decoding. OSM Nominatim API helps but even now, there is a small millisecond it connects to google server before redirect just so, extension could get the URL in 1st layer, convert co-ordinates and redirect.
To fix this, we need to wait till it reaches final destination, but google knows this IP is requesting this place in maps very clearly given enough time. The goal of extension is to prevent and minimize that leak further.
In essence, if we are using an API, it needs to be available time-tested, 24x7, for a long time, privacy-respecting and group users in a crowd to avoid google identifying people.
What we need with high priority is the logic to do conversion locally. This can be done ourselves, we just need to find the URL encoding methods and key used to encode. It's a long time driven process.
we just need to find the URL encoding methods and key used to encode
I don't think that's possible.
Also, we can go to google (to get location) in background without showing google account cookies. What do you think about that? This would fix this issue.
I don't think that's possible.
It's time consuming not impossible.
in background without showing google account cookies
Then must have least number of connections, and avoid cookies as far as possible. Quick pickup and block the network connection as soon as we get it like we do for other redirects.
I neither think it's possible nor impossible but suspect these IDs could be something like meaningless UUIDs in some database. Or something already proves otherwise?
IDs could be something like meaningless UUIDs in some database
Our own theory is, it's encoded with a key in base 64 or base 84 or some other form of formats.