Stephane
Stephane

Reputation: 5078

How to add Streetview function in my MKMapView?

I'm looking to add Streetview function to my current iphone app maps I made with MKMapView. Any idea how to do this?

Thx for helping,

Stephane

Upvotes: 2

Views: 2201

Answers (1)

nevan king
nevan king

Reputation: 113757

Unless you want to spend a long time mapping tiles onto a 3D world, you can give a link to the maps app, which lets the user choose Street View.

If you want an easy way to embed Street View, use the (fairly new) Street View Image API, which returns static images for a location and heading (relative to the road):

http://maps.googleapis.com/maps/api/streetview?size=400x400&location=40.720032,%20-73.988354&fov=90&heading=235&pitch=10&sensor=false

enter image description here

Upvotes: 5

Related Questions