你怎么知道当一个Android设备具有地理codeR后端服务?你怎么、后端、地理、设备

2023-09-07 03:02:39 作者:孟婆来碗香飘飘

按照地理codeR文档,这个类提供的方法到可能或设备上可能不存在一个后端服务。如果地缘codeR不会在设备上存在,理论上一个地理code请求将返回任何结果。但是,怎么能没有结果的,由于那里是没有后端地理codeR服务与那里是没有结果,因为该位置是没有意义的区别?

According to the Geocoder documentation, the class provides methods into a backend service which may or may not exist on the device. If the geocoder doesn't exist on the device, theoretically a geocode request will return no results. However, how can one differentiate between no results due to there being no backend geocoder service vs. there being no results because the location makes no sense?

我的应用程序已经要求谷歌地图API,所以也许这是一个有争议的问题;作为一个次要的问题,请问谷歌地图API的总是包括地理codeR?

My app already requires the Google Maps API, so perhaps this is a moot point; as a secondary question, does the Google Maps API always include a Geocoder?

推荐答案

根据该的谷歌地图文档的谷歌地图API提供客户端的地理codeR地理编码地址。所以,我要说的是,既然你是要求谷歌地图API,你需要一个地理codeR。

According to the Google Maps docs, "The Google Maps API provides a client geocoder for geocoding addresses". So I would say that since you are requiring the google maps API, you are requiring a geocoder.