Geocoding API
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
将地址转换为地理坐标(地理编码),然后,您可以使用这些坐标在地图上放置标记或在地图上定位。您还可以使用此 API 将地理坐标转换为地址(反向地理编码)。
服务:geocoding-backend.googleapis.com
创建 RPC 客户端存根需要名为 geocoding-backend.googleapis.com
的服务。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-13。
[null,null,["最后更新时间 (UTC):2025-08-13。"],[],[],null,["# Geocoding API\n\nConvert addresses into geographic coordinates (geocoding), which you can use to place markers or position the map. This API also allows you to convert geographic coordinates into an address (reverse geocoding).\n\nService: geocoding-backend.googleapis.com\n-----------------------------------------\n\nThe Service name `geocoding-backend.googleapis.com` is needed to create RPC client stubs.\n\n[google.maps.geocode.v4alpha.DestinationService](/maps/documentation/geocoding/reference/rpc/google.maps.geocode.v4alpha#google.maps.geocode.v4alpha.DestinationService)\n------------------------------------------------------------------------------------------------------------------------------------------------------------------------\n\n| Methods ||\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|\n| [SearchDestinations](/maps/documentation/geocoding/reference/rpc/google.maps.geocode.v4alpha#google.maps.geocode.v4alpha.DestinationService.SearchDestinations) | This method performs a destination lookup and returns a list of destinations. |\n\n[google.maps.geocode.v4beta.GeocodeService](/maps/documentation/geocoding/reference/rpc/google.maps.geocode.v4beta#google.maps.geocode.v4beta.GeocodeService)\n-------------------------------------------------------------------------------------------------------------------------------------------------------------\n\n| Methods ||\n|-----------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------|\n| [GeocodeAddress](/maps/documentation/geocoding/reference/rpc/google.maps.geocode.v4beta#google.maps.geocode.v4beta.GeocodeService.GeocodeAddress) | This method performs an address geocode, which maps an address to a LatLng. |\n| [GeocodeLocation](/maps/documentation/geocoding/reference/rpc/google.maps.geocode.v4beta#google.maps.geocode.v4beta.GeocodeService.GeocodeLocation) | This method performs a location geocode, which maps a LatLng to an address. |\n| [GeocodePlace](/maps/documentation/geocoding/reference/rpc/google.maps.geocode.v4beta#google.maps.geocode.v4beta.GeocodeService.GeocodePlace) | This method performs a geocode lookup using a place ID. |"]]