Skip to content

The library that transforms String location into Country/Region/City

License

Notifications You must be signed in to change notification settings

MaratMingazovOrg/getCountry

Repository files navigation

getCountry

Build Status codecov License

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)]
}

Dependency

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>

About

The library that transforms String location into Country/Region/City

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

 
 
 

Languages