{ @Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
if (requestCode == Place_Picker_Request){
place_Picket = PlacePicker.getPlace(data,this);
String nama = String.format("%s",place_Picket.getName());
_txplaceName.setText("Name : "+nama);
String address = String.format("%s",place_Picket.getAddress());
_txplaceAddres.setText("Addres : "+address);
String latlang = String.format("%s",place_Picket.getLatLng());
_txplacePhoneNumber.setText("LatLng :"+latlang);
"I will calculate distance betwen my location with latlang from placepicker"
"and show in toast"
Toast.makeText(MainActivity.this,"",Toast.Length_short).show();
String url = String.format("%s",place_Picket.getWebsiteUri());
_txplaceWebsite.setText("Alamat Website : "+url);
}
super.onActivityResult(requestCode, resultCode, data);
}}
Asked
Active
Viewed 109 times
0

Christian Gollhardt
- 16,510
- 17
- 74
- 111

Yudi karma
- 324
- 3
- 15
-
Possible duplicate of [Calculate distance between two latitude-longitude points? (Haversine formula)](https://stackoverflow.com/questions/27928/calculate-distance-between-two-latitude-longitude-points-haversine-formula) – Simo Oct 12 '17 at 17:03
-
yes, but placepicker just have getlatlang() merthod, how to get just lotitute and longitute from place picker ?? please help me – Yudi karma Oct 20 '17 at 15:04