def gmaps_url_to_lat_lon(url):
  """Converts a Google maps URL string into latitude and longitude."""
  if "!3d" in url:
    return url.split("!3d")[1].split("!4d")
  else:
    return url.split("/")[6].split(",")