标签: google-maps google-maps-api-3
当我尝试获取它的纬度和经度时,我得到了以下地址的“ZERO_RESULTS”,但它在下面的静态地图请求中显示OK。有谁知道为什么? (它一般对其他地址都很好。)
http://maps.google.com/maps/api/geocode/xml?address=Bali+Zoo+Jl.+Raya+Singapadu+Banjar+Seseh+Sukawati+Batuan+Sukawat%2c+Singapadu%2c+Sukawati%2c+Kabupaten%2c+Gianyar+-%2c+Bali%2c+Indonesia&sensor=false
ZERO_RESULTS
http://maps.googleapis.com/maps/api/staticmap?center=Bali+Zoo+Jl.+Raya+Singapadu+Banjar+Seseh+Sukawati+Batuan+Sukawat%2c+Singapadu%2c+Sukawati%2c+Kabupaten%2c+Gianyar+-%2c+Bali%2c+Indonesia&zoom=16&scale=2&size=300x160&maptype=roadmap&format=png&visual_refresh=true&markers=size:mid%7Ccolor:blue%7Clabel:%7CBali+Zoo+Jl.+Raya+Singapadu+Banjar+Seseh+Sukawati+Batuan+Sukawat%2c+Singapadu%2c+Sukawati%2c+Kabupaten%2c+Gianyar+-%2c+Bali%2c+Indonesia
答案 0 :(得分:0)
根据geocodezip的评论,https://developers.google.com/maps/documentation/geocoding/best-practices很有帮助。