Google StreetView / Map API

问题描述 投票:0回答:1

是他们以任何方式获得附近的街道视图坐标相对于特定位置(坐标)

在这里,我正在使用这个东西,但它返回了错误的信息。 https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=13.0602543,77.6471364&radius=1000&type=streetview&sensor=true&key= {} API_KEY

android google-maps google-street-view
1个回答
0
投票

我建议使用Street View Image Metadata端点,以获得最近的可用街景全景图。

在您的情况下,您可以运行以下请求

https://maps.googleapis.com/maps/api/streetview/metadata?location=13.0602543%2C77.6471364&radius=1000&source=default&key=YOUR_API_KEY

此请求返回以下响应

{
    "copyright":"© Prashant Dubey",
    "date":"2018-09",
    "location":{
        "lat":13.0602702,
        "lng":77.6470768
    },
    "pano_id":
      "CAoSK0FGMVFpcFBLMTdMM25RWEMxWEk4TmJWZkdmbzZpdlZJdWZ0aHhmbFlyR2s.",
    "status":"OK"
}

所以你在这里有位置和全景ID。

我希望这有帮助!

© www.soinside.com 2019 - 2024. All rights reserved.