Skip to main content

Fast reverse geocoding without internet connection

Project description

coordinates2country-py

A Python port of the excellent coordinates2country Java library.

What country is at a particular latitude/longitude? This Python library tells you quickly, without using the Internet and without requiring any permission.

  • Fast reverse geocoding
  • Never needs an Internet connection, not even the first time
  • Less than 100kB

Installation

pip install coordinates2country-py

Usage

from coordinates2country import Coordinates2Country

c2c = Coordinates2Country()

# Get country name in English
print(c2c.country(50.1, 10.2))  # Output: Germany

# Get ISO country code
print(c2c.country_code(50.1, 10.2))  # Output: DE

# Get Wikidata QID
print(c2c.country_qid(50.1, 10.2))  # Output: 183

Credits

This is a Python port of the coordinates2country Java library. All credit for the original implementation and data goes to the original authors.

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

coordinates2country-1.0.7.tar.gz (85.5 kB view details)

Uploaded Source

Built Distribution

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

coordinates2country-1.0.7-py3-none-any.whl (83.8 kB view details)

Uploaded Python 3

File details

Details for the file coordinates2country-1.0.7.tar.gz.

File metadata

  • Download URL: coordinates2country-1.0.7.tar.gz
  • Upload date:
  • Size: 85.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for coordinates2country-1.0.7.tar.gz
Algorithm Hash digest
SHA256 acb61a55331c2f240b003b41d9888f5d741362d69d933838376ca5115f5fc82a
MD5 4238c00a0df024c13656298e2fe4dd4f
BLAKE2b-256 8e763b9147a43f970b007d35a20362f9cc534bcdac1dcfe1c8e929bba625636c

See more details on using hashes here.

File details

Details for the file coordinates2country-1.0.7-py3-none-any.whl.

File metadata

File hashes

Hashes for coordinates2country-1.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 ddc2cbbfd31b8d474a0449711df0bb9f55e056b5d6514cadcbfbadba246eddb1
MD5 1e136cf95a4a4b01662c6d5236c51278
BLAKE2b-256 2c6aa80a7cb0f1d05e44db945e490cfc38ba646b1ae55bb296dc2e56166bfecd

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