2013-03-28 80 views
0

這是我在Qlickview代碼:谷歌地圖API V3犯規獲得的座標

let noRows = NoOfRows('GoogleMaps')-1; 

for i=0 to $(noRows) 

let a=peek('CUSTACCOUNT',$(i),'GoogleMaps'); 
let b=peek('Adresa',$(i),'GoogleMaps'); 

Data: 
LOAD 
'$(a)' as [Kupac šifra], 
'$(b)' as Adresa, 
subfield([Response/Placemark/Point/coordinates], ',' ,1) AS longitude, 
subfield([Response/Placemark/Point/coordinates], ',' ,2) AS latitude 
FROM [http://maps.googleapis.com/maps/geo?q=$(b)&output=xml&oe=utf8&key=AIzaSyBByoqS6QmwjSOSRDIOxRe82cUW-iLYJo4] (XmlSimple, Table is [kml]); 

下一個我;

「輸出」是這樣的:

Data: 
LOAD 
'454874' as [Kupac šifra], 
'Frankfurt Deutschland' as Adresa, 
subfield([Response/Placemark/Point/coordinates], ',' ,1) AS longitude, 
subfield([Response/Placemark/Point/coordinates], ',' ,2) AS latitude 
FROM [http://maps.googleapis.com/maps/geo?q=Frankfurt Deutschland&output=xml&oe=utf8&key=AIzaSyBByoqS6QmwjSOSRDIOxRe82cUW-iLYJo4] (XmlSimple, Table is [kml]) 

與谷歌不工作的溝通,有beeing沒有返回座標。有人可以幫我嗎?

回答

0

最近更新:

如果您修改您的網址與此st環,你將看到的狀態:

[http://maps.googleapis.com/maps/api/geocode/xml?address= $(將Vaddress)+ FR &輸出= CSV & OE = UTF8 &傳感器=假&鍵= AIzaSyBByoqS6QmwjSOSRDIOxRe82cUW-iLYJo4]

礦仍然REQUEST_DENIED。我想這可能是我們的域名在谷歌的價目表上,他們還會註冊爲「Google Maps API for Companies」。

0

做這一招,它的definitelly工作: http://www.qvsource.com/wiki/General-Web-Connector-For-QlikView.ashx#Example_2

1)開放QV腳本 2)打開向導網頁式檔案 3)複製&粘貼此鏈接http://maps.google.com/maps/api/geocode/XMLaddress=1600+Amphitheatre+Parkway,+Mountain+View,+CA&sensor=false 4)選擇XML 5)將生成三個表格,僅僅爲了簡化查詢而使用GeoCodeResponse: 6)地址中的數據不必包含任何特殊字母(Ö=> Oe,...),並應與被連結,+符號