ruelluna
ruelluna

Reputation: 797

Constructing URL for Google Maps Location for iOS

I created a web view to open google maps. I got no problems getting the location by CLLocationManager. However, I need to specify a query string like this: "hospital loc: [latitude], [longitude]" to put in the search box to locate the nearest hospitals. How can I implement this after I load "maps.google.com" in my web view?

Upvotes: 0

Views: 489

Answers (1)

Dr.Kameleon
Dr.Kameleon

Reputation: 22820

Try this :

http://maps.google.com/?q=hospital+loc:+[latitude],+[longitude]

Notes :

  1. Obviously replace with your desired latitude, longitude coordinates
  2. Remember to properly encode the parameter passed to q=

Upvotes: 1

Related Questions