Get provinces, cities/districts, districts and villages from a country
go get github.com/ramadani/adminarea
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()