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

Do a request to /getCountryCode with payload:

{"latitude": 45.123 (float), "longitude": -25.123 (float)}

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

Example:

Request

api/getCountryCode?latitude=54.769350220741586&longitude=25.319456079720805

Response

Response.body = b'{"message":"OK","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.2.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.2.0-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: geo_country_service-0.2.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.2.0.tar.gz
Algorithm Hash digest
SHA256 a727310efc6b4e2c22affeb66cd91b49c576308b815dada6c4fd184ef9cac432
MD5 ffc7434e5c569ccd3c821d39ad446306
BLAKE2b-256 c5d3035082aecb25695aefa431ba7bb0d6d18f2e05047a83fc42e8b84476bf8a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for geo_country_service-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f379d1705f337f5d7992f324ee179bcf65f609f31708b88db59253b909f62e23
MD5 30be265619414a69c760e4a16e9a7048
BLAKE2b-256 0abdd3b862b7b3b6bdaf074a58cd91ed740007f660ae991aab4a2ca03cfbdbf7

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