Hvor
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å.
Metadata
Release files for hvor 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| hvor-0.2.1.tar.gz | 1.7 MB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hvor-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 3.4 MB
Release files / hvor-0.2.1.tar.gz
| Download URL | hvor-0.2.1.tar.gz |
|---|---|
| Size | 1.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e1b4b0dd6b63357f7659ca599a76c6ae11df55a262d82f318e4567eee8df1e26
|
|
BLAKE2b-256 checksum How to use checksums |
d7812c1d0ada2466d1f5684c661437b43fb6311163c354766edae1572df3036e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.8 CPython/3.8.11 Linux/5.8.0-1040-azure
|
Release files / hvor-0.2.1-py3-none-any.whl
| Download URL | hvor-0.2.1-py3-none-any.whl |
|---|---|
| Size | 1.7 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
563d9888509e986e87d8d615f3423d8e41f9e85563506f0edd4802a0f08c1d37
|
|
BLAKE2b-256 checksum How to use checksums |
57bfc13220a8ec74c7f6b3adb5de0ddf60fff9488bf25667f632c46d1bacb034
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.8 CPython/3.8.11 Linux/5.8.0-1040-azure
|
Security for hvor 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.