bharath gangupalli
bharath gangupalli

Reputation: 550

How to load Map view using the WebView Url in iphone

I'm loading a mapview using UIWebView by an url like http://www.google.com/maps?saddr=Massachusetts,+United+States&daddr=Sunnyvale,+CA,+United+States. This leads to load a direction view instead of mapview with Direction.

Can any one tell me how to load mapview with directionLine from source to destination using the above url?

Upvotes: 1

Views: 1138

Answers (1)

PanPiotr
PanPiotr

Reputation: 21

Just add &output=embed at the end of your link:

http://www.google.com/maps?saddr=Massachusetts,+United+States&daddr=Sunnyvale,+CA,+United+States&output=embed

Upvotes: 2

Related Questions