Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package pl.edu.agh.iet.miles.master.model;
- import com.fasterxml.jackson.annotation.JsonProperty;
- import java.util.List;
- public class GeoLocation {
- @JsonProperty("Results")
- List<Result> results;
- List<Link> links;
- private class Link {
- private String rel;
- private String href;
- }
- private class PlaceInformation {
- private String confidenceFactor;
- private float longitude;
- private float latitude;
- private String name;
- private String category;
- private String id;
- private String city;
- private String state;
- private String country;
- public PlaceInformation(String confidenceFactor, float longitude, float latitude, String name,
- String category, String id, String city, String state, String country) {
- this.confidenceFactor = confidenceFactor;
- this.longitude = longitude;
- this.latitude = latitude;
- this.name = name;
- this.category = category;
- this.id = id;
- this.city = city;
- this.state = state;
- this.country = country;
- }
- }
- private class GeoCodeRS {
- private String status;
- private List<PlaceInformation> place;
- public GeoCodeRS(String status, List<PlaceInformation> place) {
- this.status = status;
- this.place = place;
- }
- }
- private class Result {
- private GeoCodeRS geoCodeRS;
- public Result() {
- }
- }
- // "Results":[
- //
- // {
- // "GeoCodeRS":{
- // "status":"ONE_PLACE_FOUND",
- // "Place": [{
- // "confidenceFactor":"ADDRESS_QUALITY",
- // "latitude":32.896111,
- // "longitude":-97.041111,
- // "Name":"Dallas Fort Worth International",
- // "Category":"AIR",
- // "Id":"DFW",
- // "City":"Dallas",
- // "State":"TX",
- // "Country":"US"
- // }]
- // }
- // }],
- // "Links":[
- //
- // {
- // "rel":"self",
- // "href":"https://api.test.sabre.com/v1/lists/utilities/geocode/locations"
- // },
- //
- // {
- // "rel":"linkTemplate",
- // "href":"https://api.test.sabre.com/v1/lists/utilities/geocode/locations"
- // }]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement