Skip to content

epetersen-lab/dawa-api-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DAWA API Client

Introduction

Client library for accessing Danmarks Adressers Web API (DAWA). Currently 'adgangsadresser' is the only supported endpoint.

Example

Query all 'adgangsadresser' from the 'postnr' 1218. The response format is to e of type mini.

try:
    client = dawa.Client()
    query = dawa.AdresseQuery(postnr="1218")
    result = client.adgangsadresser_mini(query)
    for r in result:
        print(f"{r.vejnavn} {r.husnr:>3}, {r.postnr} {r.postnrnavn} ({r.x}, {r.y})")
except dawa.ApiErrorConnection as error:
    print(f"Connection failed: {error}")
except dawa.ApiError as error:
    print(f"Error: {error}")
´´´

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors