1

如何獲取最近的GoogleStreetView圖片及其確切位置的位置不準確?感謝其他api? 谷歌地圖做到這一點,例如:HTTPS:?//maps.google.fr/maps Q = 45.755622,4.869343 & HL = FR & NUM = 1 &噸=米& Z = 16 但是API是難以容忍: http://maps.googleapis.com/maps/api/streetview?size=400x400&location=45.755622,4.869343&fov=90&heading=235&pitch=10&sensor=false最近的街景圖

根據API文檔,我們應該使用這種網址: ... /地圖/ API /街景尺寸400×400 =位置& = 40.720032,%20-73.988354 &傳感器=假&鍵= API_console_key

無法檢查照片是否可用(解析照片顏色? )

(正反轉:http://cbk0.googleapis.com/cbk?output=xml&ll=40.720032,%20-73.988354&cb_client=apiv3給出圖像的確切位置,我用它在我的android項目上,但這個webservice似乎沒有維護供公衆使用? :/)

回答

2

您可以使用StreetViewService.getPanoramaByLocation()

有一個半徑參數,當他是小於50,您將收到最近的全景數據(不到50米)。

當在50米範圍內沒有全景可用時,您可以增加半徑直到獲得結果。