我能得到城市,从谷歌地图API

问题描述:

的人口和地区代码,我有这样的代码我能得到城市,从谷歌地图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 V3的一部分。您将需要为此找到一个数据源(这可能会在FusionTables中公开提供)。在美国,人口可以从普查中公开获得。不知道在哪里得到区号。

+1

对于免费的外部API来获得人口我推荐WolframAlpha(http://www.wolframalpha.com/input/?i=population+of+Texas+in+2014)或FullContact(https://www.fullcontact的.com /开发者/文档/位置/) – 2015-11-25 12:49:06