Skip to content

Finds surrounding PLZ in GERMANY with a specific radius around a PLZ

License

Notifications You must be signed in to change notification settings

Karl1b/plzfinder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

plzfinder

Finds and returns surrounding PLZ (postal code) in GERMANY with a specific radius around a PLZ

go get github.com/karl1b/plzfinder
// init: run this once for your service to load the data from csv into ram
// point to the csv file location.
plzfinder.LoadCSV("zipcodes.de.csv")

// tbis is how you search for all PLZ in 5km radius around 06110 
orte, err := plzfinder.FindeOrte("06110", 5)
if err != nil {
	// handle error
}

I got the DATA from HERE: https://github.com/zauberware/postal-codes-json-xml-csv

Thanks matey! ;-)

About

Finds surrounding PLZ in GERMANY with a specific radius around a PLZ

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages