Skip to main content

A service that provides an alpha-3 country code from given coordinates

Project description

🌎 Geo country service API 🌎

A service to get alpha3 country code from provided coordinate point


Usage

Pass latitude and longitude coordinates to get_country_code function:

{"latitude": (float), "longitude": (float)}

Result contains message and result. If coordinate payload is valid Alpha-3 country will be stored in result.

Example:

from geo_country_service import get_country_code


result = get_country_code(latitude=45.123, longitude=-25.123)
print(result)

Result

{"message":"success","result":"LTU"}

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

geo_country_service-0.5.0.tar.gz (6.8 MB view details)

Uploaded Source

Built Distribution

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

geo_country_service-0.5.0-py3-none-any.whl (6.9 MB view details)

Uploaded Python 3

File details

Details for the file geo_country_service-0.5.0.tar.gz.

File metadata

  • Download URL: geo_country_service-0.5.0.tar.gz
  • Upload date:
  • Size: 6.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.10

File hashes

Hashes for geo_country_service-0.5.0.tar.gz
Algorithm Hash digest
SHA256 c9ac56132206b21c1efe8f9fbb5a899cb63c4eda1dd16819b491529b1ae1e615
MD5 55346d3a75128f0ccbdeb8657d75f632
BLAKE2b-256 17e7c8fbb0230efc6e0b5d0e3eced7b0a5f605b25899768315330f28d0e9be08

See more details on using hashes here.

File details

Details for the file geo_country_service-0.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for geo_country_service-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dd076d50a6a8ea276075636a124c7af01bab019fb7b61a173b892b177b90e257
MD5 8f185e4d952c090195f30413b75dfcfa
BLAKE2b-256 de4b704f5b0a7031deb014fc4abd47b7ff66f165debf0673c83100e03d547665

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