https://github.com/ramsailopal/pcode-api
A UK post codes API utilising YottaDB as the database and Flask/Python to present the endpoint
https://github.com/ramsailopal/pcode-api
api-rest flask-application postcode python yottadb
Last synced: 3 months ago
JSON representation
A UK post codes API utilising YottaDB as the database and Flask/Python to present the endpoint
- Host: GitHub
- URL: https://github.com/ramsailopal/pcode-api
- Owner: RamSailopal
- Created: 2022-12-21T10:43:16.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-28T14:02:05.000Z (about 3 years ago)
- Last Synced: 2024-12-29T10:27:34.417Z (about 1 year ago)
- Topics: api-rest, flask-application, postcode, python, yottadb
- Language: Python
- Homepage:
- Size: 19.7 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PCODE-API

An API that takes a UK post code and returns the longitute and latitude
Utilises YottaDB as the database and Python flask to present the API endpoint.
# To run
docker-run -p 5000:5000 -it docker.io/ramb0/api-pcode
The endpoint will then be available at the address http://dockerserveraddress:5000/pcode
To get the co-ordinates for example of zip **B71 4LF**:
curl http://dockerserveraddress:5000/pcode?pcode=B71 4LF
Output:
[
{
"lat": "52.509003",
"long": "1664982",
"pcode": "B71 4LF"
}
]