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

com.wirefreethought.geodb.client.model.PopulatedPlaceDetails 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; /** * Full populated-place details */ @ApiModel(description = "Full populated-place details") @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2022-02-12T13:16:57.813-08:00") public class PopulatedPlaceDetails { @SerializedName("country") private String country = null; @SerializedName("countryCode") private String countryCode = null; @SerializedName("deleted") private Boolean deleted = null; @SerializedName("elevationMeters") private Integer elevationMeters = 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("timezone") private String timezone = null; @SerializedName("type") private PopulatedPlaceType type = null; @SerializedName("wikiDataId") private String wikiDataId = null; public PopulatedPlaceDetails 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 PopulatedPlaceDetails 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 PopulatedPlaceDetails deleted(Boolean deleted) { this.deleted = deleted; return this; } /** * If this place has been soft-deleted * @return deleted **/ @ApiModelProperty(value = "If this place has been soft-deleted") public Boolean isDeleted() { return deleted; } public void setDeleted(Boolean deleted) { this.deleted = deleted; } public PopulatedPlaceDetails elevationMeters(Integer elevationMeters) { this.elevationMeters = elevationMeters; return this; } /** * The place elevation (meters) above sea level * @return elevationMeters **/ @ApiModelProperty(value = "The place elevation (meters) above sea level") public Integer getElevationMeters() { return elevationMeters; } public void setElevationMeters(Integer elevationMeters) { this.elevationMeters = elevationMeters; } public PopulatedPlaceDetails 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 PopulatedPlaceDetails 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 PopulatedPlaceDetails 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 PopulatedPlaceDetails 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 PopulatedPlaceDetails 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 PopulatedPlaceDetails 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 PopulatedPlaceDetails 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 PopulatedPlaceDetails timezone(String timezone) { this.timezone = timezone; return this; } /** * The place timezone id * @return timezone **/ @ApiModelProperty(value = "The place timezone id") public String getTimezone() { return timezone; } public void setTimezone(String timezone) { this.timezone = timezone; } public PopulatedPlaceDetails 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 PopulatedPlaceDetails 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; } PopulatedPlaceDetails populatedPlaceDetails = (PopulatedPlaceDetails) o; return Objects.equals(this.country, populatedPlaceDetails.country) && Objects.equals(this.countryCode, populatedPlaceDetails.countryCode) && Objects.equals(this.deleted, populatedPlaceDetails.deleted) && Objects.equals(this.elevationMeters, populatedPlaceDetails.elevationMeters) && Objects.equals(this.id, populatedPlaceDetails.id) && Objects.equals(this.latitude, populatedPlaceDetails.latitude) && Objects.equals(this.longitude, populatedPlaceDetails.longitude) && Objects.equals(this.name, populatedPlaceDetails.name) && Objects.equals(this.population, populatedPlaceDetails.population) && Objects.equals(this.region, populatedPlaceDetails.region) && Objects.equals(this.regionCode, populatedPlaceDetails.regionCode) && Objects.equals(this.timezone, populatedPlaceDetails.timezone) && Objects.equals(this.type, populatedPlaceDetails.type) && Objects.equals(this.wikiDataId, populatedPlaceDetails.wikiDataId); } @Override public int hashCode() { return Objects.hash(country, countryCode, deleted, elevationMeters, id, latitude, longitude, name, population, region, regionCode, timezone, type, wikiDataId); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PopulatedPlaceDetails {\n"); sb.append(" country: ").append(toIndentedString(country)).append("\n"); sb.append(" countryCode: ").append(toIndentedString(countryCode)).append("\n"); sb.append(" deleted: ").append(toIndentedString(deleted)).append("\n"); sb.append(" elevationMeters: ").append(toIndentedString(elevationMeters)).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(" timezone: ").append(toIndentedString(timezone)).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