我可以从谷歌地图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");

我想补充一下有关该市人口及其区号的信息。有什么帮助吗?

感谢

这些信息(人口和地区代码)不能作为Google Maps API v3的一部分使用。您需要为此找到一个数据源(它可能在FusionTables中公开)。在美国,人口普查中的人口是公开的。不知道在哪里可以得到区号。

最新更新