You are viewing the configuration of the
Ordnance Survey Postcode By Region API. Visit the API Homepage for developer docs and to sign up to use the API
Query
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
PREFIX pc: <http://data.ordnancesurvey.co.uk/ontology/postcode/>
PREFIX sr: <http://data.ordnancesurvey.co.uk/ontology/spatialrelations/>
SELECT ?name ?description ?lat ?long WHERE {
?name pc:district ?district .
?name pc:ward ?ward .
?name a pc:PostcodeUnit .
?name rdfs:label ?description .
?name geo:lat ?lat .
?name geo:long ?long .
}
ORDER BY ?description
Parameters
| Parameter | Default | Required | Type | Base | Notes |
| district | | No | uri | http://data.ordnancesurvey.co.uk/id/ | |
| ward | | No | uri | http://data.ordnancesurvey.co.uk/id/ | |
Response Formats
| Name | Media Type | URL | Notes |
| kml | application/vnd.google-earth.kml+xml | https://github.com/kasabi/kasabi-xsl/raw/master/src/kml/to-basic-placemarks.xsl | |