Skip to content

RamSailopal/PCODE-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PCODE-API

example workflow

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"
  }
]

About

A UK post codes API utilising YottaDB as the database and Flask/Python to present the endpoint

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published