3

Is there any way to open google maps app in streetview mode with desired heading and pitch?

There is example in Google Maps URL Scheme for iOS Documentation with latitude, longitude and zoom, but there is nothing written about pitch and heading. It does not works when i try to embed parameters in URL like this &pitch= &heading=

There must be some way how to achieve this, because when i open street view in Safari browser and Safari offers me deeplink to Google Maps app it opens with exactly same heading and pitch like in Safari

I know that there are other options like embed google maps in app or open map URL in safari, but i need to open it in google maps app.

xomena
  • 31,125
  • 6
  • 88
  • 117
matuslittva
  • 154
  • 1
  • 9
  • Pitch is called viewing angle and heading is called bearing in Google's documentation. Try searching for those and see if that helps. – trndjc Jan 03 '18 at 22:12

1 Answers1

3

In 2017 Google launched Google Maps URLs which is currently the recommended cross-platform syntax to open Google Maps app both in iOS and Android devices.

The Google Maps URLs has a street view mode and parameters heading, pitch and fov are supported.

So, you can use the new cross-platform syntax instead of the Google Maps URL scheme for iOS.

Example, from the official documentation

https://www.google.com/maps/@?api=1&map_action=pano&viewpoint=48.857832,2.295226&heading=-45&pitch=38&fov=80

I hope this helps!

xomena
  • 31,125
  • 6
  • 88
  • 117