Published 21st July 2011
Type SPARQL Stored Procedure
Users 3

Ordnance Survey Postcode By Region

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

ParameterDefaultRequiredTypeBaseNotes
districtNourihttp://data.ordnancesurvey.co.uk/id/
wardNourihttp://data.ordnancesurvey.co.uk/id/

Response Formats

NameMedia TypeURLNotes
kmlapplication/vnd.google-earth.kml+xmlhttps://github.com/kasabi/kasabi-xsl/raw/master/src/kml/to-basic-placemarks.xsl