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() |
boolean |
equals(Object o) |
GasStation.Address |
getAddress()
Gets the address of the gas station.
|
GasStationBrand |
getBrand()
Gets the gas station's brandString.
|
double |
getDistance(GeoPoint from)
Gets the distance between the gas station and the specified point.
|
String |
getId()
Gets the INRIX ID for this gas station.
|
GeoPoint |
getLocation()
Gets the gas station's location.
|
List<GasStation.Product> |
getProducts()
Gets the list of products available at this gas station.
|
int |
hashCode() |
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 String getId()
public GasStationBrand getBrand()
public GeoPoint getLocation()
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.public int describeContents()
describeContents
in interface Parcelable
public void writeToParcel(Parcel dest, int flags)
writeToParcel
in interface Parcelable
Copyright © 2013-2018 INRIX, Inc. All Rights Reserved.