gpt4 book ai didi

jquery - Google Maps API v3 对企业名称进行地理编码

转载 作者:行者123 更新时间:2023-12-01 00:48:32 26 4
gpt4 key购买 nike

是否可以使用企业名称而不是确切的街道地址进行地理编码?以下地理编码请求返回 0 个结果。我希望能够发送公司名称、城市和州并检索纬度和经度。这是我到目前为止所拥有的:

var business = "Neighborhood Theatre, Charlotte, NC 28205";
geocoder.geocode({'address' : business, 'region' : 'us'}, function(results, status) {
console.log(status);
});

最佳答案

不,Geocoding is specifically targeted at postal addresses.

Geocoding is the process of converting addresses (like "1600 Amphitheatre Parkway, Mountain View, CA") into geographic coordinates (like latitude 37.423021 and longitude -122.083739),

要对公司名称进行地理定位,您需要使用类似 Places API 的名称。

The Google Places JavaScript library's functions enable your application to search for Places (defined in this API as establishments, geographic locations, or prominent points of interest) contained within a defined area, such as the bounds of a map, or around a fixed point.

关于jquery - Google Maps API v3 对企业名称进行地理编码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14024540/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com