Skip to main content

pygeolocate

pip install pygeolocate

Get a country by its full name

# pygeolocate/examples/get_country_by_full_name.py
import pygeolocate

united_kingdom = pygeolocate.locate_by_name("united kingdom")[0]

print(country)
print(country.name)
print(country.coordinates)
print(country.coordinates[0])
print(country.coordinates['long'])

Get a country by part of its name

# pygeolocate/examples/get_country_by_partial_name.py

import pygeolocate

for country in pygeolocate.locate_by_name("united"):
    print(country)
    print(country.name)
    print(country.coordinates)
    print(country.coordinates[0])
    print(country.coordinates['long'])

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pygeolocate-1.0.11.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

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

pygeolocate-1.0.11-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

Details for the file pygeolocate-1.0.11.tar.gz.

File metadata

  • Download URL: pygeolocate-1.0.11.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.0

File hashes

Hashes for pygeolocate-1.0.11.tar.gz
Algorithm Hash digest
SHA256 0d8d0ff0d80d43ba482cefa7a68f0f4eebdf18d75fc7f953d2f4bfb3a46a1662
MD5 6f09df0066495f67868c0e711ecce167
BLAKE2b-256 e8af8fa414fb2bce62fffa58d44dcbc96b15127e85c1d2f1339a142e7a75c469

See more details on using hashes here.

File details

Details for the file pygeolocate-1.0.11-py3-none-any.whl.

File metadata

  • Download URL: pygeolocate-1.0.11-py3-none-any.whl
  • Upload date:
  • Size: 12.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.0

File hashes

Hashes for pygeolocate-1.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 9cbef5ea29d166e3f20de9544390172a2fec4e8740a1af32609b9282e9a23fd4
MD5 7871c52952e8e7839318138128010529
BLAKE2b-256 ce628f3255d63083fd84d1f5b8d2dd6698e6ddb9bb6632c52bc0c1579f4f3b08

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.11 This release

2 files

1.0.10

2 files

1.0.9

2 files

1.0.8

2 files

1.0.7

2 files

1.0.6

2 files

1.0.5

2 files

1.0.4

2 files

1.0.3

2 files

1.0.2

2 files

1.0.1

2 files

1.0.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page