Skip to content

v1.0-SNAPSHOT

Latest

Choose a tag to compare

@guneyilmaz0 guneyilmaz0 released this 16 Apr 19:22
· 1 commit to main since this release

TurkeyAPI from https://turkiyeapi.dev/

REST API for provinces and districts of Turkiye

ADD AS DEPENDENCY

       <repository>
           <id>jitpack.io</id>
           <url>https://jitpack.io</url>
       </repository>
     <dependency>
            <groupId>com.github.guneyilmaz0</groupId>
            <artifactId>TurkeyAPI</artifactId>
            <version>VERSION</version>
     </dependency>

Usage

    val province = getProvinceByName("Antalya")
    print(province.id)
    val district = getDistrictByName("Antalya", "Muratpaşa")
    print(district.id)