Code example for LatLng

Methods: toString

0
	} 
 
	public void onMapClick(LatLng point) {
 
		MarkerOptions markerOptions = new MarkerOptions()
				.position(point)
				.title("Event is here")
				.icon(BitmapDescriptorFactory
						.defaultMarker(BitmapDescriptorFactory.HUE_RED));
 
		googleMap.addMarker(markerOptions);
 
		Toast.makeText(getApplicationContext(),
				"New marker added @" + point.toString(), Toast.LENGTH_SHORT)
				.show(); 
		Log.e("Marker pinned @", "" + point.toString());
 
		latitude = Double.toString(point.latitude);
		longitude = Double.toString(point.longitude);
 
		Log.e("lat/Log before return", "is: " + latitude + " & " + longitude);