1
的人口和地區代碼,我有這樣的代碼我能得到城市,從谷歌地圖API
address = "11533"
geocoder.geocode({"address" : address}, function(results, status)
{
if(status == google.maps.GeocoderStatus.OK)
{
map.setCenter(results[0].geometry.location);
var marker = new google.maps.Marker({
map: map,
position: results[0].geometry.location
});
var str = results[0].formatted_address + "";
var info = new google.maps.InfoWindow({
content : str
});
google.maps.event.addListener(marker, "click", function()
{
info.open(map, marker);
});
}
else
alert("Error in address");
我想加入這個城市的人口和地區代碼信息。任何幫助?
感謝
對於免費的外部API來獲得人口我推薦WolframAlpha(http://www.wolframalpha.com/input/?i=population+of+Texas+in+2014)或FullContact(https://www.fullcontact的.com /開發者/文檔/位置/) – 2015-11-25 12:49:06