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