Metadata-Version: 2.4
Name: geo-country-service
Version: 0.2.0
Summary: A service that provides an alpha-3 country code from given coordinates
Author-email: Benas Jasikonis <benasjasikonis@carvertical.com>
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: shapely==2.1.0
Requires-Dist: orjson==3.10
Requires-Dist: pytest==8.4.0
Dynamic: license-file

# 🌎 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"}'
```
