The simple library that transforms String location into Country/Region/City
import getcountry.GetCountry.get
fun main(args: Array<out String>) {
print(get("from Boston"))
// Output:
// [ResultCountry(country=USA, region=Massachusetts, city=Boston)]
print(get("St. Petersburg"))
// Output:
// [ResultCountry(country=Russia, region=St. Petersburg, city=St. Petersburg), ResultCountry(country=USA, region=Florida, city=St. Petersburg)]
print(get("St. Petersburg Fl"))
// Output:
// [ResultCountry(country=USA, region=Florida, city=St. Petersburg)]
}
Stable releases are hosted on JCenter.
<repository>
<id>jcenter</id>
<url>http://jcenter.bintray.com/</url>
</repository>
<!-- ... -->
<dependency>
<groupId>com.github.getcoderio</groupId>
<artifactId>GetCountry</artifactId>
<version>1.0.24</version>
<type>pom</type>
</dependency>