Distance

public final class Distance

Container for distance information. Only returned for city/address search or geoLocation search or single regionId search.

Parameters

value The distance between the center of the search and the hotel.

unit

The unit of distance.

direction

The direction to the hotel from the center point of the search.

Constructors

Link copied to clipboard
public Distance Distance(String value, Distance.Unit unit, Distance.Direction direction)

Types

Link copied to clipboard
public final class Builder
Link copied to clipboard
public enum Direction extends Enum<Distance.Direction>

The direction to the hotel from the center point of the search. Values: N,S,W,E,NW,NE,SW,SE

Link copied to clipboard
public enum Unit extends Enum<Distance.Unit>

The unit of distance. Values: KM,MI

Properties

Link copied to clipboard
Link copied to clipboard
private final Distance.Unit unit
Link copied to clipboard
@Valid()
private final String value

Functions

Link copied to clipboard
public final static Distance.Builder builder()
Link copied to clipboard
Link copied to clipboard
public final Distance.Unit getUnit()
Link copied to clipboard
public final String getValue()
Link copied to clipboard
public final Distance.Builder toBuilder()