public static final class GeoLocation.Builder extends Object
| Modifier and Type | Method and Description |
|---|---|
GeoLocation.Builder |
accuracy(Double accuracy)
Sets the horizontal GPS error in meters.
|
GeoLocation.Builder |
altitude(Double altitude)
Sets the altitude in meters above or below sea level.
|
GeoLocation.Builder |
altitudeAccuracy(Double altitudeAccuracy)
Sets the vertical GPS error in meters.
|
GeoLocation.Builder |
area(String area)
Sets a named area such as a campus or neighborhood.
|
GeoLocation.Builder |
bearing(Double bearing)
Sets the GPS bearing (direction in which the entity is heading to reach its next waypoint), measured in decimal degrees relative to true north.
|
GeoLocation |
build()
Builds the geo location.
|
GeoLocation.Builder |
building(String building)
Sets a specific building on a street or in an area.
|
GeoLocation.Builder |
country(String country)
Sets the nation where the user is located.
|
GeoLocation.Builder |
countryCode(String countryCode)
Sets the ISO 3166 two-letter country code.
|
GeoLocation.Builder |
datum(String datum)
Sets the GPS datum.
|
GeoLocation.Builder |
description(String description)
Sets a natural-language name for or description of the location.
|
GeoLocation.Builder |
floor(String floor)
Sets a particular floor in a building.
|
GeoLocation.Builder |
language(Locale language)
Sets the natural language of location data.
|
GeoLocation.Builder |
latitude(Double latitude)
Sets the latitude in decimal degrees North.
|
GeoLocation.Builder |
locality(String locality)
Sets a locality within the administrative region, such as a town or city.
|
GeoLocation.Builder |
longitude(Double longitude)
Sets the longitude in decimal degrees East.
|
GeoLocation.Builder |
postalCode(String postalCode)
Sets a code used for postal delivery.
|
GeoLocation.Builder |
region(String region)
Sets an administrative region of the nation, such as a state or province.
|
GeoLocation.Builder |
room(String room)
Sets a particular room in a building.
|
GeoLocation.Builder |
speed(Double speed)
Sets the speed at which the entity is moving, in meters per second.
|
GeoLocation.Builder |
street(String street)
Sets a thoroughfare within the locality, or a crossing of two thoroughfares.
|
GeoLocation.Builder |
text(String text)
Sets a catch-all element that captures any other information about the location.
|
GeoLocation.Builder |
timestamp(Instant timestamp)
Sets the UTC timestamp specifying the moment when the reading was taken.
|
GeoLocation.Builder |
timeZoneOffset(ZoneOffset zoneOffset)
Sets the time zone offset from UTC for the current location.
|
GeoLocation.Builder |
uri(URI uri)
Sets a URI or URL pointing to information about the location.
|
public GeoLocation.Builder language(Locale language)
language - The language.public GeoLocation.Builder accuracy(Double accuracy)
accuracy - The accuracy.public GeoLocation.Builder altitude(Double altitude)
altitude - The altitude.public GeoLocation.Builder altitudeAccuracy(Double altitudeAccuracy)
altitudeAccuracy - The vertical GPS error in meters.public GeoLocation.Builder area(String area)
area - The area.public GeoLocation.Builder bearing(Double bearing)
bearing - The bearing.public GeoLocation.Builder building(String building)
building - The building.public GeoLocation.Builder country(String country)
country - The country.public GeoLocation.Builder countryCode(String countryCode)
countryCode - The country code.public GeoLocation.Builder datum(String datum)
datum - The GPS datum.public GeoLocation.Builder description(String description)
description - The description.public GeoLocation.Builder floor(String floor)
floor - The floor.public GeoLocation.Builder latitude(Double latitude)
latitude - The latitude.public GeoLocation.Builder locality(String locality)
locality - The locality.public GeoLocation.Builder longitude(Double longitude)
longitude - The longitude.public GeoLocation.Builder postalCode(String postalCode)
postalCode - The postal code.public GeoLocation.Builder region(String region)
region - The region.public GeoLocation.Builder room(String room)
room - The room.public GeoLocation.Builder speed(Double speed)
speed - The speed.public GeoLocation.Builder street(String street)
street - The street.public GeoLocation.Builder text(String text)
text - The text.public GeoLocation.Builder timestamp(Instant timestamp)
timestamp - The timestamp.public GeoLocation.Builder timeZoneOffset(ZoneOffset zoneOffset)
zoneOffset - The time zone offset.public GeoLocation.Builder uri(URI uri)
uri - The URI.public GeoLocation build()
Copyright © 2014–2018 XMPP.rocks. All rights reserved.