public class GasStation extends Object implements Parcelable
Modifier and Type | Class and Description |
---|---|
static class |
GasStation.Address
Represents the address of a gas station.
|
static class |
GasStation.Product
Represents a product available in a gas station.
|
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<GasStation> |
CREATOR
Parcelable creator for this type.
|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
GasStation.Address |
getAddress()
Gets the address of the gas station.
|
GasStationBrand |
getBrand()
Gets the gas station's brand.
|
double |
getDistance(GeoPoint from)
Gets the distance between the gas station and the specified point.
|
GeoPoint |
getGeoPoint()
Get the current location of the gas station as a
GeoPoint . |
String |
getId()
Gets the INRIX ID for this gas station.
|
double |
getLatitude()
Gets the Latitude in which the gas station is located.
|
double |
getLongitude()
Gets the longitude in which the gas station is located.
|
List<GasStation.Product> |
getProducts()
Gets the list of products available at this gas station.
|
boolean |
hasProducts()
Returns true if the product list is not empty.
|
boolean |
isPreferred()
Gets whether or not this gas station is preferred.
|
String |
toString() |
void |
writeToParcel(Parcel dest,
int flags) |
public static final Parcelable.Creator<GasStation> CREATOR
public int describeContents()
describeContents
in interface Parcelable
public void writeToParcel(Parcel dest, int flags)
writeToParcel
in interface Parcelable
public String getId()
public GasStationBrand getBrand()
public double getLatitude()
public double getLongitude()
public GasStation.Address getAddress()
public double getDistance(GeoPoint from)
from
- The point from which to calculate the distance.UserPreferences.setSettingUnits(Unit)
).public List<GasStation.Product> getProducts()
public boolean isPreferred()
true
if preferred; false
otherwise.public boolean hasProducts()
true
if the product list is not empty; {code false} otherwise.Copyright © 2013-2016 INRIX, Inc. All Rights Reserved.