Skip to main content

A library for assigning Norwegian metadata to coordinates

Project description

Hvor

example workflow Documentation Status License: LGPL v3

Har du en eller flere koordinater innenfor Norges geografiske grenser som du gjerne skulle visst mer om? hvor er et Python-bibliotek for å hente ut ulike typer data for koordinater i Norge. Data som kan hentes inkluderer:

  • Kommunedata (kommune og kommunenummer)
  • Fylkesdata (fylke og fylkesnummer)

Flere typer data vil bli lagt til etterhvert!

Installering

Så enkelt som

pip install hvor

Bruk

For et enkeltpunkt med latitude og longitude, bruk point

>>> from hvor import point
>>> point(61.7327867684485, 5.540150406971685)
{'kommunenumer': [4602], 'kommune': ['Kinn'], 'fylkesnummer': [46], 'fylke': ['Vestland']}

For flere koordinater, igjen med latitude og longitude, bruk points (merk s på slutten)

>>> from hvor import points
>>> coordinates = {"lat": [63.414109, 69.14579124011655], "lon": [10.416230, 18.15361374220361]}
>>> points(coordinates)
{'kommunenummer': [5001, 5419], 'kommune': ['Trondheim', 'Sørreisa'], 'fylkesnummer': [50, 54], 'fylke': ['Trøndelag', 'Troms og Finnmark']}

Vipps, så har du kommune- og fylkesdata for koordinatene. (*men kun hvis nøklene for bredde- og lengdegradlistene dine het lat og lon😅).

Credits

Tusen takk til

  • robhop for deling av kommune- og fylkesdata.
  • Kartverket for offentliggjøring av kartdata som robhop baserte seg på.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hvor-0.2.1.tar.gz (1.7 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hvor-0.2.1-py3-none-any.whl (1.7 MB view details)

Uploaded Python 3

File details

Details for the file hvor-0.2.1.tar.gz.

File metadata

  • Download URL: hvor-0.2.1.tar.gz
  • Upload date:
  • Size: 1.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.8 CPython/3.8.11 Linux/5.8.0-1040-azure

File hashes

Hashes for hvor-0.2.1.tar.gz
Algorithm Hash digest
SHA256 e1b4b0dd6b63357f7659ca599a76c6ae11df55a262d82f318e4567eee8df1e26
MD5 dcae62351eeceabf9093857e75dd7739
BLAKE2b-256 d7812c1d0ada2466d1f5684c661437b43fb6311163c354766edae1572df3036e

See more details on using hashes here.

File details

Details for the file hvor-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: hvor-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 1.7 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.8 CPython/3.8.11 Linux/5.8.0-1040-azure

File hashes

Hashes for hvor-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 563d9888509e986e87d8d615f3423d8e41f9e85563506f0edd4802a0f08c1d37
MD5 92626917ea0a2c1788b03a17b0a69f00
BLAKE2b-256 57bfc13220a8ec74c7f6b3adb5de0ddf60fff9488bf25667f632c46d1bacb034

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page