Skip to content

Commit

Permalink
Reorganise
Browse files Browse the repository at this point in the history
  • Loading branch information
cblanc committed Mar 8, 2024
1 parent 5e873b2 commit bf3a033
Show file tree
Hide file tree
Showing 23 changed files with 86 additions and 79 deletions.
12 changes: 0 additions & 12 deletions docs/docs/methods/postcode-validation.mdx

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
sidebar_label: "Outcode Lookup"
title: "Outcode Lookup"
sidebar_label: "Lookup"
title: "Lookup an Outward Code"
---

Geolocation data for the centroid of the outward code specified. The outward code represents the first half of any postcode (separated by a space).
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
sidebar_label: "Nearest Outcode"
title: "Nearest Outcode"
sidebar_label: "Nearest"
title: "Retrieve Nearest Outward Code"
---

Returns nearest outcodes for a given outcode.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
sidebar_label: "Outcode Reverse Geocoding"
title: "Outcode Reverse Geocoding"
sidebar_label: "Reverse Geocode"
title: "Reverse Geocode an Outcode"
---

Returns nearest outcodes for a given longitude and latitude.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
sidebar_label: "Outcode Data"
title: "Outcode Data (Ordnance Survey Postcode Directory Dataset)"
sidebar_label: "Schema"
title: "Outward Code Schema"
---

Data Returned by the `/outcodes` API
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
sidebar_label: "Place Lookup"
title: "Place Lookup"
sidebar_label: "Lookup"
title: "Lookup a GB Place"
---

Find a place by OSGB code (e.g. "osgb4000000074564391"). Returns all available data if found. Returns 404 if place does not exist.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
sidebar_label: "Place Query"
title: "Place Query"
sidebar_label: "Query"
title: "Query for GB place"
---

Submit a place query and receive a complete list of places matches and associated data.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
sidebar_label: "Random Place"
title: "Random Place"
sidebar_label: "Random"
title: "Retrieve a Random Place"
---

Returns a random place and all associated data
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
sidebar_label: "Places Data"
title: "Places Data (Ordnance Survey Open Names Dataset)"
sidebar_label: "Schema"
title: "Places Schema"
---

Data Returned by the `/places` API
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
sidebar_label: "Postcode Autocomplete"
title: "Postcode Autocomplete"
sidebar_label: "Autocomplete"
title: "Autocomplete a Postcode"
---

Convenient method to return an list of matching postcodes.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
sidebar_label: "Bulk Reverse Geocoding"
title: "Bulk Reverse Geocoding"
sidebar_label: "Bulk Reverse Geocode"
title: "Bulk Reverse Geocode Postcodes"
---

Bulk translates geolocations into Postcodes. Accepts up to 100 geolocations.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
sidebar_label: "Bulk Postcode Lookup"
title: "Bulk Postcode Lookup"
sidebar_label: "Bulk Lookup"
title: "Bulk Lookup Postcodes"
---

Accepts a JSON object containing an array of postcodes. Returns a list of matching postcodes and respective available data.
Expand All @@ -19,7 +19,7 @@ This method requires a JSON object containing an array of postcodes to be posted

```JSON
{
"postcodes" : ["PR3 0SG", "M45 6GN", "EX165BL"]
"postcodes" : ["PR3 0SG", "M45 6GN", "EX165BL"]
}
```

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
sidebar_label: "Postcode Lookup"
title: "Postcode Lookup"
sidebar_label: "Lookup"
title: "Lookup a Postcode"
---

This uniquely identifies a postcode.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
sidebar_label: "Nearest Postcode"
title: "Nearest Postcode"
sidebar_label: "Nearest"
title: "Find Nearest Postcode"
---

Returns nearest postcodes for a given postcode.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
sidebar_label: "Postcode Query"
title: "Postcode Query"
sidebar_label: "Query"
title: "Query for a Postcode"
---

Submit a postcode query and receive a complete list of postcode matches and all associated postcode data.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
sidebar_label: "Random Postcode"
title: "Random Postcode"
sidebar_label: "Random"
title: "Retrieve a Random Postcode"
---

Returns a random postcode and all available data for that postcode.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
sidebar_label: "Reverse Geocoding"
title: "Reverse Geocoding"
sidebar_label: "Reverse Geocode"
title: "Reverse Geocode a Postcode"
---

Returns nearest postcodes for a given longitude and latitude.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
sidebar_label: "Postcode Data"
title: "Postcode Data (Ordnance Survey Postcode Directory Dataset)"
sidebar_label: "Schema"
title: "Postcode Model"
---

Data Points Returned by the `/postcodes` and `/outcodes` API
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
sidebar_label: "Scottish Postcode Lookup"
title: "Scottish Postcode Lookup"
sidebar_label: "Lookup"
title: "Lookup a Scottish Postcode"
---

Lookup a Scottish postcode. Returns SPD data associated with postcode. At the moment this is just Scottish Parliamentary Constituency.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
sidebar_label: "Scottish Postcode Data"
title: "Scottish Postcode Data (Scottish Postcode Directory)"
sidebar_label: "Schema"
title: "Scottish Postcode Schema"
---

Data Returned by the `/scotland/*` APIs
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
sidebar_label: "Terminated Postcode Lookup"
title: "Terminated Postcode Lookup"
sidebar_label: "Lookup"
title: "Lookup a Terminated Postcode"
---

Lookup a terminated postcode. Returns the postcode, year and month of termination. Returns 404 if postcode does not exist in our database of terminated postcodes or not valid.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
sidebar_label: "Terminated Postcode Data"
title: "Terminated Postcode Data (Ordnance Survey Postcode Directory Dataset)"
sidebar_label: "Schema"
title: "Terminated Postcode Schema"
---

Data Returned by the `/terminated_postcodes/*` APIs
Expand Down
67 changes: 43 additions & 24 deletions docs/sidebars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,38 +21,57 @@ const sidebars: SidebarsConfig = {
"self-host",
{
type: "category",
label: "Available Data Fields",
label: "Postcodes",
collapsed: false,
items: [
"data-fields/postcode",
"data-fields/outcode",
"data-fields/scottish",
"data-fields/terminated",
"data-fields/places",
"postcode/schema",
"postcode/lookup",
"postcode/query",
"postcode/bulk",
"postcode/random",
"postcode/autocomplete",
"postcode/reverse-geocode",
"postcode/bulk-reverse-geocode",
],
},
{
type: "category",
label: "Methods",
label: "Outward Codes",
collapsed: false,
items: [
"methods/postcode-lookup",
"methods/bulk-postcode-lookup",
"methods/reverse-geocoding",
"methods/bulk-reverse-geocoding",
"methods/postcode-query",
"methods/postcode-validation",
"methods/nearest-postcode",
"methods/postcode-autocomplete",
"methods/random-postcode",
"methods/outward-code-lookup",
"methods/outcode-reverse-geocoding",
"methods/nearest-outcode",
"methods/scottish-postcode-lookup",
"methods/terminated-postcode-lookup",
"methods/place-lookup",
"methods/place-query",
"methods/random-place",
"outcode/schema",
"outcode/lookup",
"outcode/reverse-geocode",
"outcode/nearest",
],
},
{
type: "category",
label: "Places",
collapsed: false,
items: [
"place/schema",
"place/lookup",
"place/query",
"place/random",
],
},
{
type: "category",
label: "Terminated Postcodes",
collapsed: false,
items: [
"terminated-postcode/schema",
"terminated-postcode/lookup",
],
},
{
type: "category",
label: "Scottish Postcodes",
collapsed: false,
items: [
"scottish-postcode/schema",
"scottish-postcode/lookup",
],
},
],
Expand Down

0 comments on commit bf3a033

Please sign in to comment.