从android Geocoder获取波斯信息

rka*_*ami 5 android google-maps google-api geolocation google-geocoder

我试图从Android Geocoder获取波斯信息,我的意思是我通过纬度和经度,我想得到波斯语中的城市名称,但没有地方可以在波斯语中获取这些信息.我可以看到,在地方自动填充功能谷歌建议使用波斯语中的位置名称,但没有为地理编码器设置的语言环境.有人知道用波斯语获取这些信息的方法吗?

Sam*_*ehi 10

在构造函数中传递您的所需语言环境:

Geocoder geo = new Geocoder(getActivity(), new Locale("fa"));
Run Code Online (Sandbox Code Playgroud)