NLGeoCities
NLGeoCities is a dataset containing latitude and longitude coordinates for cities in the Netherlands.
Overview
NLGeoCities provides geographical coordinates for various cities across the Netherlands. This dataset is useful for a wide range of applications, including geographic visualizations, location-based services, and spatial analysis.
Installation
You can install NLGeoCities via pip:
pip install nl-ego-cities
pypi page link is here:
(https://pypi.org/project/nl-ego-cities/)
The documentation for NLGeoCities can be found here:
Document
Quick Start
Get City Coordinates JSON File from NLGeoCities
To get started, you can obtain a JSON file containing city coordinates from NLGeoCities. Here's how to do it in Python:
from nl_ego_cities import city_coords
# Get the JSON file
cities = city_coords.city_json
# Access city coordinates
amsterdam_coords = cities["amsterdam"]
print(f"Coordinates of Amsterdam: latitude: {amsterdam_coords['lat']}, longitude: {amsterdam_coords['lon']}")
Processing DataFrame with get_lat_lon Function
If you have a DataFrame and want to add latitude and longitude columns using NLGeoCities, you can use the get_lat_lon function. Here's how to do it:
from nl_ego_cities.load_city_data import get_lat_lon
# Assuming 'df' is your DataFrame with a 'city' column
df['city_lat'], df['city_lon'] = get_lat_lon(df, 'city')
Note: The keys in the JSON file are lowercase.
JSON Data Structure
The JSON file obtained from NLGeoCities follows this structure:
{
"amsterdam": {
"lat": 52.3676,
"lon": 4.9041
},
"rotterdam": {
"lat": 51.9225,
"lon": 4.4792
},
...
}
Metadata
Release files for nl-ego-cities 0.1.20
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 | Actions |
|---|---|---|---|---|
| nl-ego-cities-0.1.20.tar.gz | 25.6 kB | Without provenance | Details for nl-ego-cities-0.1.20.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nl_ego_cities-0.1.20-py3-none-any.whl | Python 3 | none | any | Details for nl_ego_cities-0.1.20-py3-none-any.whl |
Total release size: 50.2 kB
Release files / nl-ego-cities-0.1.20.tar.gz
| Download URL | nl-ego-cities-0.1.20.tar.gz |
|---|---|
| Size | 25.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
54bac28adf0b5c6545601132a5a601e896708ec6be44fed24908e53d6deea800
|
|
BLAKE2b-256 checksum How to use checksums |
8e73359a98308b9cc98d5915d4dff745d6b71ce4767c2e70f376e9874b180faf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.2
|
Release files / nl_ego_cities-0.1.20-py3-none-any.whl
| Download URL | nl_ego_cities-0.1.20-py3-none-any.whl |
|---|---|
| Size | 24.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4b31aa50cbc50a0429e9370319e9a4a2929a33a48bcff04358eac8a2b975f10d
|
|
BLAKE2b-256 checksum How to use checksums |
cfc58f98ff6987b7470b855150d67ba405adb8c0fd4bf78558f33f12ad4adfdd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.2
|
Security for nl-ego-cities 0.1.20
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.