Example usage for android.location Address getLatitude

List of usage examples for android.location Address getLatitude

Introduction

In this page you can find the example usage for android.location Address getLatitude.

Prototype

public double getLatitude() 

Source Link

Document

Returns the latitude of the address if known.

Usage

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);
}