2013-03-13 57 views
-1

我在我的項目中使用googlemaps.subgurim.net谷歌地圖。地理編碼功能正常工作到2013年3月8日。在我遇到地理編碼功能問題後,它返回代碼610和代碼狀態badkey。在這裏,我將緯度和經度人類可讀address.now它不工作。如何解決這個...地理編碼功能返回610代碼和codestatus badkey

GeoCode objAddress = new GeoCode(); 
objAddress = GMap1.getGeoCodeRequest(new GLatLng(12.55,77.55)); 
StringBuilder sb = new StringBuilder(); 
if (objAddress.valid) 
{ 
    sb.Append(objAddress.Placemark.address.ToString()); 
    string address = sb.ToString(); 
    lblPlace.Text = address; 
} 
+0

這意味着您的API密鑰不好,來自錯誤的IP,或者您可能根本沒有提供。 – Tass 2013-03-13 08:13:37

+0

按照twitter的說法Subgurim Maps @SubgurimMaps它看起來像我們正在使用的v2 Geocoding API有一些技術問題,我們正在調查這個問題。來源:https://twitter.com/SubgurimMaps/status/311750648616075264 – 2013-03-13 16:35:01

回答

0

的610代碼映射到這個錯誤:

The given key is either invalid or does not match the domain for which it was given. 

聽起來您的API密鑰可能存在問題。看看這個問題,因爲它可能更多地解釋:Google Geocoding v2 API stopped working suddenly

0

我有同樣的問題,代碼在幾天前工作正常。

谷歌表示,他們正在停止自己的地理編碼API V2爲3月8日,但是,他們說,他們已經推遲EOL至2013年9月8日(見https://developers.google.com/maps/documentation/geocoding/v2/

API密鑰使用是可選的,但現在它在沒有鑰匙或以前有效的鑰匙時不起作用。

看起來唯一的解決方案是移植到API v3。