[datameet] Converting Google map links to long/lat

2023-11-06 Thread Vaidya
Hi,

I am trying to get long/lat from Google map links of pins using python and
am facing some challenges.
Does anyone know a clean way to get the lat/long from the links?
I tried using requests.get and parsing the final url.
Some of them work and show a lat-long in the URL, but some resolve to
addresses.
I think it depends on how the pin was dropped.

Examples:
https://maps.app.goo.gl/GF7UUbYcc4L2wVJV9?g_st=ic resolves to a url that
does not have lat-long.
https://maps.app.goo.gl/DkRaEGPcPuyA6XFA8 - this does.

If anyone has already solved this and can help that would be great.
Have tried googling, but not able to find a working answer.

Thanks,
Vaidya

-- 
Datameet is a community of Data Science enthusiasts in India. Know more about 
us by visiting http://datameet.org
--- 
You received this message because you are subscribed to the Google Groups 
"datameet" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to datameet+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/datameet/CAHVy6PEuT5fJoU%3DvOxQtrdUoHKv-NAkN2q4RwgRLuqJ_QXmYXA%40mail.gmail.com.


Re: [datameet] Converting Google map links to long/lat

2023-11-06 Thread Samuel Rajkumar
Look in the URL?

[image: Screenshot from 2023-11-07 11-26-59.png]

On Tue, Nov 7, 2023 at 10:30 AM Vaidya  wrote:

> Hi,
>
> I am trying to get long/lat from Google map links of pins using python and
> am facing some challenges.
> Does anyone know a clean way to get the lat/long from the links?
> I tried using requests.get and parsing the final url.
> Some of them work and show a lat-long in the URL, but some resolve to
> addresses.
> I think it depends on how the pin was dropped.
>
> Examples:
> https://maps.app.goo.gl/GF7UUbYcc4L2wVJV9?g_st=ic resolves to a url that
> does not have lat-long.
> https://maps.app.goo.gl/DkRaEGPcPuyA6XFA8 - this does.
>
> If anyone has already solved this and can help that would be great.
> Have tried googling, but not able to find a working answer.
>
> Thanks,
> Vaidya
>
> --
> Datameet is a community of Data Science enthusiasts in India. Know more
> about us by visiting http://datameet.org
> ---
> You received this message because you are subscribed to the Google Groups
> "datameet" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to datameet+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/datameet/CAHVy6PEuT5fJoU%3DvOxQtrdUoHKv-NAkN2q4RwgRLuqJ_QXmYXA%40mail.gmail.com
> 
> .
>

-- 
Datameet is a community of Data Science enthusiasts in India. Know more about 
us by visiting http://datameet.org
--- 
You received this message because you are subscribed to the Google Groups 
"datameet" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to datameet+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/datameet/CAFLOqVJ0wsXD9BJaUYskdKvbreDPFu5V7Ogms2xBYPGNf6Cfzw%40mail.gmail.com.


Re: [datameet] Converting Google map links to long/lat

2023-11-06 Thread Vaidya
Hi,

The above link stops one short on libraries like requests.get.
Even through the browser you can see it resolving a few seconds later.
Need a programmatic response to resolve to the final url, if such a thing
is available on python.

Thanks,
Vaidya

On Tue, Nov 7, 2023 at 11:27 AM Samuel Rajkumar  wrote:

> Look in the URL?
>
> [image: Screenshot from 2023-11-07 11-26-59.png]
>
> On Tue, Nov 7, 2023 at 10:30 AM Vaidya  wrote:
>
>> Hi,
>>
>> I am trying to get long/lat from Google map links of pins using python
>> and am facing some challenges.
>> Does anyone know a clean way to get the lat/long from the links?
>> I tried using requests.get and parsing the final url.
>> Some of them work and show a lat-long in the URL, but some resolve to
>> addresses.
>> I think it depends on how the pin was dropped.
>>
>> Examples:
>> https://maps.app.goo.gl/GF7UUbYcc4L2wVJV9?g_st=ic resolves to a url that
>> does not have lat-long.
>> https://maps.app.goo.gl/DkRaEGPcPuyA6XFA8 - this does.
>>
>> If anyone has already solved this and can help that would be great.
>> Have tried googling, but not able to find a working answer.
>>
>> Thanks,
>> Vaidya
>>
>> --
>> Datameet is a community of Data Science enthusiasts in India. Know more
>> about us by visiting http://datameet.org
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "datameet" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to datameet+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/datameet/CAHVy6PEuT5fJoU%3DvOxQtrdUoHKv-NAkN2q4RwgRLuqJ_QXmYXA%40mail.gmail.com
>> 
>> .
>>
> --
> Datameet is a community of Data Science enthusiasts in India. Know more
> about us by visiting http://datameet.org
> ---
> You received this message because you are subscribed to the Google Groups
> "datameet" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to datameet+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/datameet/CAFLOqVJ0wsXD9BJaUYskdKvbreDPFu5V7Ogms2xBYPGNf6Cfzw%40mail.gmail.com
> 
> .
>

-- 
Datameet is a community of Data Science enthusiasts in India. Know more about 
us by visiting http://datameet.org
--- 
You received this message because you are subscribed to the Google Groups 
"datameet" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to datameet+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/datameet/CAHVy6PEoO5UNZWgm2E1-MZFbaP0X1gJ-60amP4OPxXgym--PcA%40mail.gmail.com.


Re: [datameet] Converting Google map links to long/lat

2023-11-06 Thread Thejesh GN
You might have to use a webdriver. Selenium and Python combo might work.

--
Thejesh GN ⏚ ತೇಜೇಶ್ ಜಿ.ಎನ್
http://thejeshgn.com
GPG ID :  0xBFFC8DD3C06DD6B0

On Tue, 7 Nov 2023, 11:45 Vaidya,  wrote:

> Hi,
>
> The above link stops one short on libraries like requests.get.
> Even through the browser you can see it resolving a few seconds later.
> Need a programmatic response to resolve to the final url, if such a thing
> is available on python.
>
> Thanks,
> Vaidya
>
> On Tue, Nov 7, 2023 at 11:27 AM Samuel Rajkumar 
> wrote:
>
>> Look in the URL?
>>
>> [image: Screenshot from 2023-11-07 11-26-59.png]
>>
>> On Tue, Nov 7, 2023 at 10:30 AM Vaidya  wrote:
>>
>>> Hi,
>>>
>>> I am trying to get long/lat from Google map links of pins using python
>>> and am facing some challenges.
>>> Does anyone know a clean way to get the lat/long from the links?
>>> I tried using requests.get and parsing the final url.
>>> Some of them work and show a lat-long in the URL, but some resolve to
>>> addresses.
>>> I think it depends on how the pin was dropped.
>>>
>>> Examples:
>>> https://maps.app.goo.gl/GF7UUbYcc4L2wVJV9?g_st=ic resolves to a url
>>> that does not have lat-long.
>>> https://maps.app.goo.gl/DkRaEGPcPuyA6XFA8 - this does.
>>>
>>> If anyone has already solved this and can help that would be great.
>>> Have tried googling, but not able to find a working answer.
>>>
>>> Thanks,
>>> Vaidya
>>>
>>> --
>>> Datameet is a community of Data Science enthusiasts in India. Know more
>>> about us by visiting http://datameet.org
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "datameet" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to datameet+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/datameet/CAHVy6PEuT5fJoU%3DvOxQtrdUoHKv-NAkN2q4RwgRLuqJ_QXmYXA%40mail.gmail.com
>>> 
>>> .
>>>
>> --
>> Datameet is a community of Data Science enthusiasts in India. Know more
>> about us by visiting http://datameet.org
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "datameet" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to datameet+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/datameet/CAFLOqVJ0wsXD9BJaUYskdKvbreDPFu5V7Ogms2xBYPGNf6Cfzw%40mail.gmail.com
>> 
>> .
>>
> --
> Datameet is a community of Data Science enthusiasts in India. Know more
> about us by visiting http://datameet.org
> ---
> You received this message because you are subscribed to the Google Groups
> "datameet" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to datameet+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/datameet/CAHVy6PEoO5UNZWgm2E1-MZFbaP0X1gJ-60amP4OPxXgym--PcA%40mail.gmail.com
> 
> .
>

-- 
Datameet is a community of Data Science enthusiasts in India. Know more about 
us by visiting http://datameet.org
--- 
You received this message because you are subscribed to the Google Groups 
"datameet" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to datameet+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/datameet/CAABnYsWOgmSwibKaEcLV5dfCj3EDUVpop2WJn%3DDrKHu90S2Z5w%40mail.gmail.com.


Re: [datameet] Converting Google map links to long/lat

2023-11-08 Thread Sidhiksha Sharda
If you want to scrap it for a region or a category I could provide you data
cant say it is open source as it is scrapped and cleaned up. No licence.

On Tue, 7 Nov, 2023, 11:45 Vaidya,  wrote:

> Hi,
>
> The above link stops one short on libraries like requests.get.
> Even through the browser you can see it resolving a few seconds later.
> Need a programmatic response to resolve to the final url, if such a thing
> is available on python.
>
> Thanks,
> Vaidya
>
> On Tue, Nov 7, 2023 at 11:27 AM Samuel Rajkumar 
> wrote:
>
>> Look in the URL?
>>
>> [image: Screenshot from 2023-11-07 11-26-59.png]
>>
>> On Tue, Nov 7, 2023 at 10:30 AM Vaidya  wrote:
>>
>>> Hi,
>>>
>>> I am trying to get long/lat from Google map links of pins using python
>>> and am facing some challenges.
>>> Does anyone know a clean way to get the lat/long from the links?
>>> I tried using requests.get and parsing the final url.
>>> Some of them work and show a lat-long in the URL, but some resolve to
>>> addresses.
>>> I think it depends on how the pin was dropped.
>>>
>>> Examples:
>>> https://maps.app.goo.gl/GF7UUbYcc4L2wVJV9?g_st=ic resolves to a url
>>> that does not have lat-long.
>>> https://maps.app.goo.gl/DkRaEGPcPuyA6XFA8 - this does.
>>>
>>> If anyone has already solved this and can help that would be great.
>>> Have tried googling, but not able to find a working answer.
>>>
>>> Thanks,
>>> Vaidya
>>>
>>> --
>>> Datameet is a community of Data Science enthusiasts in India. Know more
>>> about us by visiting http://datameet.org
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "datameet" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to datameet+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/datameet/CAHVy6PEuT5fJoU%3DvOxQtrdUoHKv-NAkN2q4RwgRLuqJ_QXmYXA%40mail.gmail.com
>>> 
>>> .
>>>
>> --
>> Datameet is a community of Data Science enthusiasts in India. Know more
>> about us by visiting http://datameet.org
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "datameet" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to datameet+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/datameet/CAFLOqVJ0wsXD9BJaUYskdKvbreDPFu5V7Ogms2xBYPGNf6Cfzw%40mail.gmail.com
>> 
>> .
>>
> --
> Datameet is a community of Data Science enthusiasts in India. Know more
> about us by visiting http://datameet.org
> ---
> You received this message because you are subscribed to the Google Groups
> "datameet" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to datameet+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/datameet/CAHVy6PEoO5UNZWgm2E1-MZFbaP0X1gJ-60amP4OPxXgym--PcA%40mail.gmail.com
> 
> .
>

-- 
Datameet is a community of Data Science enthusiasts in India. Know more about 
us by visiting http://datameet.org
--- 
You received this message because you are subscribed to the Google Groups 
"datameet" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to datameet+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/datameet/CAEjKv7feQ2AuucaN1rRv%2BwtZ9UN4KUHzzjbVbkhFRCZohBCeQQ%40mail.gmail.com.


Re: [datameet] Converting Google map links to long/lat

2023-11-08 Thread Vaidya
Thanks all.

I was looking for the mechanism, not a specific map.
I tried Thejesh's suggestion with a 5s sleep and it worked.
This query is now resolved.

Thanks,
Vaidya

On Thu, Nov 9, 2023 at 3:25 AM Sidhiksha Sharda 
wrote:

> If you want to scrap it for a region or a category I could provide you
> data cant say it is open source as it is scrapped and cleaned up. No
> licence.
>
> On Tue, 7 Nov, 2023, 11:45 Vaidya,  wrote:
>
>> Hi,
>>
>> The above link stops one short on libraries like requests.get.
>> Even through the browser you can see it resolving a few seconds later.
>> Need a programmatic response to resolve to the final url, if such a thing
>> is available on python.
>>
>> Thanks,
>> Vaidya
>>
>> On Tue, Nov 7, 2023 at 11:27 AM Samuel Rajkumar 
>> wrote:
>>
>>> Look in the URL?
>>>
>>> [image: Screenshot from 2023-11-07 11-26-59.png]
>>>
>>> On Tue, Nov 7, 2023 at 10:30 AM Vaidya  wrote:
>>>
 Hi,

 I am trying to get long/lat from Google map links of pins using python
 and am facing some challenges.
 Does anyone know a clean way to get the lat/long from the links?
 I tried using requests.get and parsing the final url.
 Some of them work and show a lat-long in the URL, but some resolve to
 addresses.
 I think it depends on how the pin was dropped.

 Examples:
 https://maps.app.goo.gl/GF7UUbYcc4L2wVJV9?g_st=ic resolves to a url
 that does not have lat-long.
 https://maps.app.goo.gl/DkRaEGPcPuyA6XFA8 - this does.

 If anyone has already solved this and can help that would be great.
 Have tried googling, but not able to find a working answer.

 Thanks,
 Vaidya

 --
 Datameet is a community of Data Science enthusiasts in India. Know more
 about us by visiting http://datameet.org
 ---
 You received this message because you are subscribed to the Google
 Groups "datameet" group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to datameet+unsubscr...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/datameet/CAHVy6PEuT5fJoU%3DvOxQtrdUoHKv-NAkN2q4RwgRLuqJ_QXmYXA%40mail.gmail.com
 
 .

>>> --
>>> Datameet is a community of Data Science enthusiasts in India. Know more
>>> about us by visiting http://datameet.org
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "datameet" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to datameet+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/datameet/CAFLOqVJ0wsXD9BJaUYskdKvbreDPFu5V7Ogms2xBYPGNf6Cfzw%40mail.gmail.com
>>> 
>>> .
>>>
>> --
>> Datameet is a community of Data Science enthusiasts in India. Know more
>> about us by visiting http://datameet.org
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "datameet" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to datameet+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/datameet/CAHVy6PEoO5UNZWgm2E1-MZFbaP0X1gJ-60amP4OPxXgym--PcA%40mail.gmail.com
>> 
>> .
>>
> --
> Datameet is a community of Data Science enthusiasts in India. Know more
> about us by visiting http://datameet.org
> ---
> You received this message because you are subscribed to the Google Groups
> "datameet" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to datameet+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/datameet/CAEjKv7feQ2AuucaN1rRv%2BwtZ9UN4KUHzzjbVbkhFRCZohBCeQQ%40mail.gmail.com
> 
> .
>

-- 
Datameet is a community of Data Science enthusiasts in India. Know more about 
us by visiting http://datameet.org
--- 
You received this message because you are subscribed to the Google Groups 
"datameet" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to datameet+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/datameet/CAHVy6PGxF%2BFhwbNGcocL5P0at4QPxPRMbe-TDK2wdbEjXq%2BUtA%40mail.gmail.com.