A city coordinator package. The goal behind this package is to map cities arround the world with their coordinations without any need for an internet connection
Project description
Cities coordinates
cities_coordinates is a python package that helps to identify cities' coordinations arround the
Installation
cities_coordinates python and pip to be installed.
In order to install the plugin, run the following command:
pip install cities_coordinates
Usage
For now this package has two basical methods the first one get_city() returns the city coordinations using a city name and its country code, the second get_country_cities returns all of the cities that belongs to the given country code.
from cities_coordinates import CityCoordinator
c=CityCoordinator()
c.get_city(city_name="Jena",country_code_iso="DE")
# {'country_iso_code': 'DE', 'city_name': 'Jena', 'location': {'lat': '50.92878', 'lon': '11.5899'}}
c.get_country_cities(country_code_iso="DE")
#[
# {'country_iso_code': 'DE', 'city_name': 'Lenningen', 'location': {'lat': '48.55048', 'lon': '9.47674'}},
# {'country_iso_code': 'DE', 'city_name': 'Lobbach', 'location': {'lat': '49.37519', 'lon': '8.88884'}},
# {'country_iso_code': 'DE', 'city_name': 'Sachsenheim', 'location': {'lat': '48.96', 'lon': '9.06472'}}
#...]
I'll be happy if you like this helpful package and feel free contribute to it
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cities_coordinates-0.1.tar.gz.
File metadata
- Download URL: cities_coordinates-0.1.tar.gz
- Upload date:
- Size: 1.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/2.7.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c8cf5957ecf521dffcc1b5972c14dec713c94bbefd97d4a4eecbe5da7b35811d
|
|
| MD5 |
d9e209da56a42049656e3bb4af7e3efd
|
|
| BLAKE2b-256 |
69b15a22ad9f9d6d014b6fc005f42cac87d7739435f04ba3cf9eef242d5a7d22
|
File details
Details for the file cities_coordinates-0.1-py2-none-any.whl.
File metadata
- Download URL: cities_coordinates-0.1-py2-none-any.whl
- Upload date:
- Size: 2.1 MB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/2.7.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c4cb62cd7604a7b33a9cd93d01148e5d95c5e4cce8a193c7a488223c3b96960d
|
|
| MD5 |
bec01e85a86d9c2f3cdbada6018a9564
|
|
| BLAKE2b-256 |
691e1bc0959fccf17f51f4c77a4c90df8b151b6cc8e6979e4866211bf9ed5a79
|