Android geocoder powrocie żadnego rezultatu - Wyjątek

głosy
0
List<android.location.Address> addressList = null;

Geocoder geocoder = new Geocoder(MapsActivity.this);
try
{
    addressList = geocoder.getFromLocationName(place.getName().toString(), 1);
}
catch (IOException e)
{
    e.printStackTrace();
}

Address address = addressList.get(0);
LatLng latLng = new LatLng(address.getLatitude(), address.getLongitude());
Utwórz 19/04/2018 o 07:43
źródło użytkownik
W innych językach...                            


1 odpowiedzi

Android geocoder powrocie żadnego rezultatu - Wyjątek

głosy
0
List<android.location.Address> addressList = null;

Geocoder geocoder = new Geocoder(MapsActivity.this);
try
{
    addressList = geocoder.getFromLocationName(place.getName().toString(), 1);
}
catch (IOException e)
{
    e.printStackTrace();
}

Address address = addressList.get(0);
LatLng latLng = new LatLng(address.getLatitude(), address.getLongitude());
Odpowiedział 19/04/2018 o 07:43
źródło użytkownik

Cookies help us deliver our services. By using our services, you agree to our use of cookies. Learn more