Currently I am developing an android applicaiton.
From my collection data, I have a list of location ( not address)- only name of location ( such as name of restaurant, resort, beach...), I want to find address of each location on Google Map API as the below image:
How I can do it ?
I appreciate your help in this case. Thanks.
I'm also looking for a way to do it but I only find the solution to get Latitude or Longitude from specific address or in contrast.
I implemented as the below code but not result can be returned :(
Geocoder coder = new Geocoder(this);
List<Address> address;
try {
String locationName = "Nhà hàng Blanchy Street, VietNam";
Geocoder gc = new Geocoder(this);
List<Address> addressList = coder.getFromLocationName(locationName, 5);
Address location = addressList.get(0);
double latitude = location.getLatitude();
double longitude = location.getLongitude();
LatLng sydney = new LatLng(latitude , longitude );
map.setMyLocationEnabled(true);
map.moveCamera(CameraUpdateFactory.newLatLngZoom(sydney, 13));