Reputation: 550
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
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