dutchprovinces

package module
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 21, 2025 License: BSD-2-Clause Imports: 9 Imported by: 0

README

dutchprovinces

Go Reference

This library resolves GPS coordinates or Dutch postal codes to the Dutch province. Returned province codes are according to https://en.wikipedia.org/wiki/ISO_3166-2:NL.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LookupLatitudeLongitude

func LookupLatitudeLongitude(lat, lon float64) (string, bool)

LookupLatitudeLongitude returns the ISO 3166-2 province code of the given GPS coordinates. The first call needs to prepare the database and will be slow. You can make a call from a startup function to pre-initialize it.

func LookupPostalCode

func LookupPostalCode(code string) (string, bool)

LookupPostalCode returns the ISO 3166-2 province code of the given postal code. Currently only the (four) digits of the postal code are considered, a future version might use the characters if needed. (AFAIK there is one postal code that is in two provinces.)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL