Reverse geocoding is not working in some android devices?

后端 未结 2 457
走了就别回头了
走了就别回头了 2021-01-21 13:51

I am developing an application on maps, am not able to get address in this mobile, its android version is 4.3, like below --

2条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-21 14:19

    Geocoder is not implemented by all manufacturers. It's may be a reason why it doesn't work on a particular device. From the Geocoder documentation :

    The Geocoder class requires a backend service that is not included in the core android framework. The Geocoder query methods will return an empty list if there no backend service in the platform

    Or perhaps there is a request quota.

    Instead you can use a remote service like Google Maps geocoding API (quotas too).

提交回复
热议问题