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

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy