Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Geocoder geocoder = new Geocoder(<your context>);
List<Address> addresses;
addresses = geocoder.getFromLocationName(<String address>, 1);
if(addresses.size() > 0) {
double latitude= addresses.get(0).getLatitude();
double longitude= addresses.get(0).getLongitude();
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question