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
cities_coordinates-0.1.tar.gz
(1.9 MB
view hashes)
Built Distribution
Close
Hashes for cities_coordinates-0.1-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4cb62cd7604a7b33a9cd93d01148e5d95c5e4cce8a193c7a488223c3b96960d |
|
MD5 | bec01e85a86d9c2f3cdbada6018a9564 |
|
BLAKE2b-256 | 691e1bc0959fccf17f51f4c77a4c90df8b151b6cc8e6979e4866211bf9ed5a79 |