List of usage examples for android.location Address getLatitude
public double getLatitude()
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 *///from www . j a va 2s. co 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); }