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.3.0.tar.gz (2.6 kB 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.3.0-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: geo_country_service-0.3.0.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • 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.3.0.tar.gz
Algorithm Hash digest
SHA256 58dfbe4c252754978acda130466dbbb58d3931e27060657e8d29ee24123ea254
MD5 b19b0921ce530847d6b7d5c30437d326
BLAKE2b-256 3eb6fd632575f38d7633891c319a3988bc43ae0fb61829429a2112dec05f14a3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for geo_country_service-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 197c4161cd5942aa694bb0d1dc5642dced49dbcac2a4abec945daff95573c8cc
MD5 02aff29e2e81689ff043752c44f1c0b6
BLAKE2b-256 bdfa3d318a66838ff3a2fa21e22803c5aa746768cd2effe25e0a5a3706a09451

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