geolocation - How to get use Geocoder in android? -


is below code sufficient lat & long value address.

list<address> addresslist = geocoder.getfromlocationname(cityname, 1); address address = addresslist.get(0); if(address.haslatitude() && address.haslongitude()){        double selectedlat = address.getlatitude();    double selectedlng = address.getlongitude(); } 

please tell me proper method use geocoder


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -