List Postcodes and its Boundaries
List postcodes and its boundaries for given a bounds
Endpoint: /api/postcode/postcodeWithinBounds
Request
| Parameter | Type | Position | Required | Sample |
|---|---|---|---|---|
| Content-Type | string |
Header | Yes | application/json |
| Accept | string |
Header | Yes | application/json |
| Authorization | string |
Header | Yes | Bearer eyJ0eXAiOiJKV1QiLCJhbGci... |
| query | json |
Body | Yes |
JSON.stringify('{
"north_east": {
"lat": 1.172094,
"long": 52.941102
},
"south_west": {
"lat": -3.090601,
"long": 50.846614
}
}')
|
Success Response
{
"data": [
{
"postcode": "SW3 3DR",
"coordinates"; {"type":"Polygon","coordinates":[[[-0.167172797347876,51.4920230759507],[-0.168002277897212,51.4922029884229],[-0.168031841820493,51.4922312534005],[-0.167951881949924,51.4924985370168],[-0.167745581167872,51.4928199556864],[-0.167726970975846,51.4928299581433],[-0.166797084371206,51.4926188277305],[-0.166791525224051,51.4926106626759],[-0.166880362256011,51.4923305354637],[-0.167172797347876,51.4920230759507]]]}
},
{
"postcode": "TW7 6GF",
"coordinates": {"type":"Polygon","coordinates":[[[-0.333527551198632,51.4678893460051],[-0.334205655106857,51.468118068334],[-0.334049630608738,51.4684816320012],[-0.331490941084637,51.4685699723928],[-0.331448174379547,51.4685161900447],[-0.331714832388171,51.4681074708584],[-0.333527551198632,51.4678893460051]]]}
},
{
"postcode": "HA9 8SX",
"coordinates": {"type":"Polygon","coordinates":[[[-0.29763928739982,51.5643008088107],[-0.297839630335356,51.5643372135634],[-0.298493909252044,51.564895424543],[-0.297923016268185,51.5660577598954],[-0.297218031535286,51.5658385443905],[-0.297147461078694,51.5657914517253],[-0.297503032259987,51.5644689260981],[-0.29763928739982,51.5643008088107]]]}
},
...
]
}