Skip to main content

A service that provides an aplpha-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.1.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.1.0-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: geo_country_service-0.1.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.1.0.tar.gz
Algorithm Hash digest
SHA256 d71f980c78929c37dfad74d1ee86a321a0ced125207f3f86937a754e16a04f46
MD5 6afd83d7833ab48519514388bf487204
BLAKE2b-256 4d01ec78266e20cf4cf323fed0b8639f6de628539794529d34108c2f7a4f2583

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for geo_country_service-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9b5cc28a1d714a9bdf4a4726fd894864c29db3e885bba0e158a35ebf2da7bf24
MD5 0b0e29f482e219b9b8af7377361ad87a
BLAKE2b-256 6de98f95eac2f958345e3310501dd831cfb9b7e832866eaee09df623737c95b3

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