Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get persian information from android Geocoder

I'm trying to get Persian information from android Geocoder, i mean i pass latitude and longitude and i want to get name of the city in Persian, but there is no locale to get those info in Persian. I can see that in Place Autocomplete google suggests location names in Persian, but there's no locale to set for the Geocoder. Does anybody know a way to get those info in Persian?

like image 574
Reza Karami Avatar asked Jan 27 '17 22:01

Reza Karami


Video Answer


1 Answers

Pass your desire locale in constructor:

Geocoder geo = new Geocoder(getActivity(), new Locale("fa"));
like image 195
Saman Salehi Avatar answered Sep 26 '22 03:09

Saman Salehi