I would like to click a button in my iOS (11.3) app, which would open google maps at a particular location.
I have both id an place_id for my place but I don't know how to use them.
Here is the link that I constructed but it fails to open
world.location = "comgooglemaps://?q=place_id:\(place.1["place_id"].stringValue)¢er=" + latlong;
GoogleMaps launches but it responds with "No results" for my place_id. Also, the place_id: is visible in the search bar in the app.
And this is how I attempt to open the link
@IBAction func search(_ sender: UIButton) {
UIApplication.shared.open(URL(string : world.location)!)
}