List of usage examples for android.location Address getLongitude
public double getLongitude()
From source file:edu.usf.cutr.opentripplanner.android.fragments.MainFragment.java
/** * Wrapper to other functions: moves the marker to the location included * in the address, updates text box and zooms to that position. * * @param isStartMarker if true start marker will be changed * @param address will location and text information *///w w w. j a v a 2 s . c o m public void moveMarker(Boolean isStartMarker, Address address) { if (isStartMarker) { mStartAddress = address; } else { mEndAddress = address; } LatLng latlng = new LatLng(address.getLatitude(), address.getLongitude()); setMarkerPosition(isStartMarker, latlng); setTextBoxLocation(getStringAddress(address, false), isStartMarker); zoomToGeocodingResult(isStartMarker, address); }