Google street view URL

后端 未结 5 1587
心在旅途
心在旅途 2020-11-28 21:18

Hi I have the address of a property and my application can launch a browser to go to http://maps.google.com?q=searchStringHere. If a good match is found it will take it dire

5条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-28 21:41

    Update 10/2018

    The GET API (see Haygood's answer) seems to be outdated but some calls still seem to work.

    Base URL:

    changed to http://www.google.com/maps (map.google.com/maps still works but redirects)

    Parameters:

    • q: is ignored, can be skipped For more Google Street View code interpertation

    • layer: The parameter must be set to c (t is no more supported and breaks it)

    • cbll: latitude and longitude (unchanged)
    • cbp: only parameter 2 (rotation angle) and 5 (pitch) are still supported

      1. is ignored, can be 0 or empty string

      2. Rotation angle/bearing (in degrees)

      3. is ignored, can be 0 or empty string

      4. is ignored, can be 0 or empty string

      5. Pitch (in degrees) -90 (straight up) to 90 (straight down)

    Updated examples: http://www.google.com/maps?layer=c&cbll=31.335198,-89.287204

    or http://www.google.com/maps?layer=c&cbll=31.335198,-89.287204&cbp=,30,,,20 with rotation 30 and pitch 20.

提交回复
热议问题