Skip to content

Get provinces, cities/districts, districts and villages from a country

License

Notifications You must be signed in to change notification settings

ramadani/adminarea

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

adminarea

Get provinces, cities/districts, districts and villages from a country

Installation

go get github.com/ramadani/adminarea

Usage

Available Country

  • Indonesia (ID)
import "github.com/ramadani/adminarea"

idAdminArea := adminarea.New("ID")

// get country
country := idAdminArea.GetCountry()

// get provinces
provinces, err := idAdminArea.GetProvinces()

// get regencies
regencies, err := idAdminArea.GetRegencies()

// get districts
districts, err := idAdminArea.GetDistricts()

// get villages
villages, err := idAdminArea.GetVillages()

References