com.what3words.javawrapper.response.SuggestionWithCoordinates Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of w3w-java-wrapper Show documentation
Show all versions of w3w-java-wrapper Show documentation
Java library for what3words REST API.
The newest version!
package com.what3words.javawrapper.response;
import java.io.Serializable;
public class SuggestionWithCoordinates implements Serializable {
private String country;
private Square square;
private String nearestPlace;
private Coordinates coordinates;
private String words;
private String language;
private String locale;
private String map;
private Integer distanceToFocusKm;
private int rank;
public SuggestionWithCoordinates(Suggestion suggestion) {
country = suggestion.getCountry();
nearestPlace = suggestion.getNearestPlace();
words = suggestion.getWords();
language = suggestion.getLanguage();
locale = suggestion.getLocale();
distanceToFocusKm = suggestion.getDistanceToFocusKm();
rank = suggestion.getRank();
}
public SuggestionWithCoordinates(Suggestion suggestion, Coordinates coordinates) {
country = suggestion.getCountry();
nearestPlace = suggestion.getNearestPlace();
words = suggestion.getWords();
language = suggestion.getLanguage();
locale = suggestion.getLocale();
distanceToFocusKm = suggestion.getDistanceToFocusKm();
rank = suggestion.getRank();
this.coordinates = coordinates;
}
public SuggestionWithCoordinates(Suggestion suggestion, double lat, double lng) {
country = suggestion.getCountry();
nearestPlace = suggestion.getNearestPlace();
words = suggestion.getWords();
language = suggestion.getLanguage();
locale = suggestion.getLocale();
distanceToFocusKm = suggestion.getDistanceToFocusKm();
rank = suggestion.getRank();
this.coordinates = new Coordinates(lat, lng);
}
public SuggestionWithCoordinates(Suggestion suggestion, double lat, double lng, double neLat, double neLng, double swLat, double swLng) {
country = suggestion.getCountry();
nearestPlace = suggestion.getNearestPlace();
words = suggestion.getWords();
language = suggestion.getLanguage();
locale = suggestion.getLocale();
distanceToFocusKm = suggestion.getDistanceToFocusKm();
rank = suggestion.getRank();
this.coordinates = new Coordinates(lat, lng);
this.square = new Square(neLat, neLng, swLat, swLng);
}
public SuggestionWithCoordinates(Suggestion suggestion, ConvertToCoordinates convertToCoordinates) {
country = suggestion.getCountry();
nearestPlace = suggestion.getNearestPlace();
words = suggestion.getWords();
language = suggestion.getLanguage();
locale = suggestion.getLocale();
distanceToFocusKm = suggestion.getDistanceToFocusKm();
rank = suggestion.getRank();
coordinates = convertToCoordinates.getCoordinates();
map = convertToCoordinates.getMap();
square = convertToCoordinates.getSquare();
}
public SuggestionWithCoordinates(Suggestion suggestion, ConvertTo3WA convertTo3WA) {
country = suggestion.getCountry();
nearestPlace = suggestion.getNearestPlace();
words = suggestion.getWords();
language = suggestion.getLanguage();
locale = suggestion.getLocale();
distanceToFocusKm = suggestion.getDistanceToFocusKm();
rank = suggestion.getRank();
coordinates = convertTo3WA.getCoordinates();
map = convertTo3WA.getMap();
square = convertTo3WA.getSquare();
}
public String getCountry() {
return country;
}
public Square getSquare() {
return square;
}
public String getNearestPlace() {
return nearestPlace;
}
public Coordinates getCoordinates() {
return coordinates;
}
public String getWords() {
return words;
}
public String getLanguage() {
return language;
}
public String getLocale() {return locale; }
public String getMap() {
return map;
}
public Integer getDistanceToFocusKm() {
return distanceToFocusKm;
}
public int getRank() {
return rank;
}
}