Package com.google.zxing.client.result
Class GeoParsedResult
java.lang.Object
com.google.zxing.client.result.ParsedResult
com.google.zxing.client.result.GeoParsedResult
Represents a parsed result that encodes a geographic coordinate, with latitude,
longitude and altitude.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGeoParsedResult
(double latitude, double longitude, double altitude, String query) -
Method Summary
Methods inherited from class com.google.zxing.client.result.ParsedResult
getType, maybeAppend, maybeAppend, toString
-
Field Details
-
latitude
private final double latitude -
longitude
private final double longitude -
altitude
private final double altitude -
query
-
-
Constructor Details
-
GeoParsedResult
GeoParsedResult(double latitude, double longitude, double altitude, String query)
-
-
Method Details
-
getGeoURI
-
getLatitude
public double getLatitude()- Returns:
- latitude in degrees
-
getLongitude
public double getLongitude()- Returns:
- longitude in degrees
-
getAltitude
public double getAltitude()- Returns:
- altitude in meters. If not specified, in the geo URI, returns 0.0
-
getQuery
- Returns:
- query string associated with geo URI or null if none exists
-
getDisplayResult
- Specified by:
getDisplayResult
in classParsedResult
-