Google Map Latitude and Longitude

Describe the problem.

Url: https://www.spacer.com/parking-san-francisco-langton-street-ca-16516

Sitemap:
{id:"sitemap code"}

Hi!
I am trying to get data from above website. It have Google map embed. I want get Latitude and Longitude from it but I am not able to select that. I am new in scraping and does not know how I can handle this type Google Map. There Link in Google Map called View Large Map and it have latitude and longitude information in it with below HTML code

<div jstcache="117" class="default-card"> <a target="_blank" jstcache="2" href="https://maps.google.com/maps?ll=37.775388,-122.407483&amp;z=17&amp;t=m&amp;hl=en-US&amp;gl=US&amp;mapclient=embed" jsaction="mouseup:defaultCard.largerMap" class="google-maps-link">View larger map</a> </div>

Let me know if someone can help me regarding this. Thanks!

For this particular URL, longitude can be extracted with:

Type: HTML
Selector: div.gmap
Regex: (?<=center\=)[\-\d\.]+

For the latitude, just change the regex to:
(?<=%2C)[\-\d\.]+

1 Like