Extract latitude, longitude and zoom from the ll parameter in Google Maps

PHOTO EMBED

Fri Apr 23 2021 13:31:26 GMT+0000 (Coordinated Universal Time)

Saved by @ilyazub #webscraping #serpapi #googlemaps #deobfuscation #reverse-engineering #ruby

PAGINATION_PARAMETERS_REGEX = %r{
  \A                                      # Start of string
  (?:\s*)                                 # initial possible whitespace
  @(?<latitude>[-+]?\d{1,2}(?:[.,]\d+)?)  # latitude: @10.78472
  (?:\s*,\s*)                             # separator between latitude and longitude
  (?<longitude>[-+]?\d{1,3}(?:[.,]\d+)?)  # longitude: @-110
  (?:\s*,\s*)                             # separator between longitude and zoom
  (?<zoom>\d{1,2}(?:[.,]\d+)?)z           # zoom: 9.22
  \z                                      # End of string
}x
content_copyCOPY

https://regex101.com/r/nOoiJ6/2