Example usage for android.location Address getLongitude

List of usage examples for android.location Address getLongitude

Introduction

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

Prototype

public double getLongitude() 

Source Link

Document

Returns the longitude 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
 *///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);
}