All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.wirefreethought.geodb.client.model.PopulatedPlaceSummary Maven / Gradle / Ivy

/*
 * GeoDB Cities API
 * The GeoDB API focuses on getting global city and region data. Easily obtain country, region, and city data for use in your apps!  
  • Filter cities by name prefix, country, location, time-zone, and even minimum population.
  • Sort cities by name, country code, elevation, and population - or any combination of these.
  • Get all country regions.
  • Get all cities in a given region.
  • Display results in multiple languages.
  • RESTful API adheres to industry best-practices, including HATEOAS-style links to facilitate paging results.
  • Backed by cloud-based load-balanced infrastructure for resiliency and performance!
  • Data is periodically refreshed from GeoNames and WikiData.

Notes:

  • Since the database is periodically updated, this may very rarely result in certain cities being marked deleted (e.g., duplicates removed). By default, endpoints returning city data will exclude cities marked deleted. However, in the unlikely event that this occurs while your app is paging through a set of affected results - and you care about the paged results suddenly changing underneath - specify includeDeleted=SINCE_YESTERDAY (or SINCE_LAST_WEEK if you're really paranoid!).

Useful Resources

* * OpenAPI spec version: 1.0.0 * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. */ package com.wirefreethought.geodb.client.model; import java.util.Objects; import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import com.wirefreethought.geodb.client.model.PopulatedPlaceType; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; /** * Minimal populated-place info */ @ApiModel(description = "Minimal populated-place info") @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2022-02-12T13:16:57.813-08:00") public class PopulatedPlaceSummary { @SerializedName("country") private String country = null; @SerializedName("countryCode") private String countryCode = null; @SerializedName("distance") private Double distance = null; @SerializedName("id") private Integer id = null; @SerializedName("latitude") private Double latitude = null; @SerializedName("longitude") private Double longitude = null; @SerializedName("name") private String name = null; @SerializedName("population") private Integer population = null; @SerializedName("region") private String region = null; @SerializedName("regionCode") private String regionCode = null; @SerializedName("type") private PopulatedPlaceType type = null; @SerializedName("wikiDataId") private String wikiDataId = null; public PopulatedPlaceSummary country(String country) { this.country = country; return this; } /** * The country name (varies by languageCode) * @return country **/ @ApiModelProperty(value = "The country name (varies by languageCode)") public String getCountry() { return country; } public void setCountry(String country) { this.country = country; } public PopulatedPlaceSummary countryCode(String countryCode) { this.countryCode = countryCode; return this; } /** * The ISO-3166 country code * @return countryCode **/ @ApiModelProperty(value = "The ISO-3166 country code") public String getCountryCode() { return countryCode; } public void setCountryCode(String countryCode) { this.countryCode = countryCode; } public PopulatedPlaceSummary distance(Double distance) { this.distance = distance; return this; } /** * Included if this is the result of a distance query * @return distance **/ @ApiModelProperty(value = "Included if this is the result of a distance query") public Double getDistance() { return distance; } public void setDistance(Double distance) { this.distance = distance; } public PopulatedPlaceSummary id(Integer id) { this.id = id; return this; } /** * The place GeoDB native id * @return id **/ @ApiModelProperty(value = "The place GeoDB native id") public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public PopulatedPlaceSummary latitude(Double latitude) { this.latitude = latitude; return this; } /** * The place latittude (-90.0 to 90.0) * @return latitude **/ @ApiModelProperty(value = "The place latittude (-90.0 to 90.0)") public Double getLatitude() { return latitude; } public void setLatitude(Double latitude) { this.latitude = latitude; } public PopulatedPlaceSummary longitude(Double longitude) { this.longitude = longitude; return this; } /** * The place longitude (-180.0 to 180.0) * @return longitude **/ @ApiModelProperty(value = "The place longitude (-180.0 to 180.0)") public Double getLongitude() { return longitude; } public void setLongitude(Double longitude) { this.longitude = longitude; } public PopulatedPlaceSummary name(String name) { this.name = name; return this; } /** * The place name (varies by languageCode) * @return name **/ @ApiModelProperty(value = "The place name (varies by languageCode)") public String getName() { return name; } public void setName(String name) { this.name = name; } public PopulatedPlaceSummary population(Integer population) { this.population = population; return this; } /** * The place population * @return population **/ @ApiModelProperty(value = "The place population") public Integer getPopulation() { return population; } public void setPopulation(Integer population) { this.population = population; } public PopulatedPlaceSummary region(String region) { this.region = region; return this; } /** * The region name (varies by languageCode) * @return region **/ @ApiModelProperty(value = "The region name (varies by languageCode)") public String getRegion() { return region; } public void setRegion(String region) { this.region = region; } public PopulatedPlaceSummary regionCode(String regionCode) { this.regionCode = regionCode; return this; } /** * The ISO or FIPS region code * @return regionCode **/ @ApiModelProperty(value = "The ISO or FIPS region code") public String getRegionCode() { return regionCode; } public void setRegionCode(String regionCode) { this.regionCode = regionCode; } public PopulatedPlaceSummary type(PopulatedPlaceType type) { this.type = type; return this; } /** * The place type * @return type **/ @ApiModelProperty(value = "The place type") public PopulatedPlaceType getType() { return type; } public void setType(PopulatedPlaceType type) { this.type = type; } public PopulatedPlaceSummary wikiDataId(String wikiDataId) { this.wikiDataId = wikiDataId; return this; } /** * The place WikiData id * @return wikiDataId **/ @ApiModelProperty(value = "The place WikiData id") public String getWikiDataId() { return wikiDataId; } public void setWikiDataId(String wikiDataId) { this.wikiDataId = wikiDataId; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } PopulatedPlaceSummary populatedPlaceSummary = (PopulatedPlaceSummary) o; return Objects.equals(this.country, populatedPlaceSummary.country) && Objects.equals(this.countryCode, populatedPlaceSummary.countryCode) && Objects.equals(this.distance, populatedPlaceSummary.distance) && Objects.equals(this.id, populatedPlaceSummary.id) && Objects.equals(this.latitude, populatedPlaceSummary.latitude) && Objects.equals(this.longitude, populatedPlaceSummary.longitude) && Objects.equals(this.name, populatedPlaceSummary.name) && Objects.equals(this.population, populatedPlaceSummary.population) && Objects.equals(this.region, populatedPlaceSummary.region) && Objects.equals(this.regionCode, populatedPlaceSummary.regionCode) && Objects.equals(this.type, populatedPlaceSummary.type) && Objects.equals(this.wikiDataId, populatedPlaceSummary.wikiDataId); } @Override public int hashCode() { return Objects.hash(country, countryCode, distance, id, latitude, longitude, name, population, region, regionCode, type, wikiDataId); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PopulatedPlaceSummary {\n"); sb.append(" country: ").append(toIndentedString(country)).append("\n"); sb.append(" countryCode: ").append(toIndentedString(countryCode)).append("\n"); sb.append(" distance: ").append(toIndentedString(distance)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" latitude: ").append(toIndentedString(latitude)).append("\n"); sb.append(" longitude: ").append(toIndentedString(longitude)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" population: ").append(toIndentedString(population)).append("\n"); sb.append(" region: ").append(toIndentedString(region)).append("\n"); sb.append(" regionCode: ").append(toIndentedString(regionCode)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" wikiDataId: ").append(toIndentedString(wikiDataId)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(java.lang.Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy