![JAR search and dependency download from the Maven repository](/logo.png)
tech.spiro.addrparser.parser.Location Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of addrparser Show documentation
Show all versions of addrparser Show documentation
Tool for parsing longitude/latitude to region info in china.
package tech.spiro.addrparser.parser;
import tech.spiro.addrparser.common.RegionInfo;
/**
* Location information as result of parsing.
* @author Spiro Huang
* @since 1.0
*/
public class Location {
private final RegionInfo prov;
private final RegionInfo city;
private final RegionInfo district;
public Location(RegionInfo prov, RegionInfo city, RegionInfo district) {
this.prov = prov;
this.city = city;
this.district = district;
}
public RegionInfo getProv() {
return prov;
}
public RegionInfo getCity() {
return city;
}
public RegionInfo getDistrict() {
return district;
}
@Override
public String toString() {
return "Location{" +
"prov=" + prov +
", city=" + city +
", district=" + district +
'}';
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy