Closest roads

England
Wales
Scotland
gethttps://crystalroof.co.uk/customer-api/transport/closest-roads/v1/{location}

Description

This method returns the closest roads.

UK roads fall into the following categories:

  • A roads – major roads intended to provide large-scale transport links within or between areas.
  • B roads – roads intended to connect different areas, and to feed traffic between A roads and smaller roads on the network.
  • Motorways - a high-capacity road with multiple lanes in each direction, controlled access points, and a separation between opposing flows of traffic, typically identified by the letter "M" followed by a number (e.g., M1, M25).
  • Classified unnumbered – smaller roads intended to connect together unclassified roads with A and B roads, and often linking a housing estate or a village to the rest of the network. Similar to ‘minor roads’ on an Ordnance Survey map and sometimes known unofficially as C roads.
  • Unclassified – local roads intended for local traffic. The vast majority (60%) of roads in the UK fall within this category.

Possible values of the formOfWay field:

  • Collapsed Dual Carriageway
  • Dual Carriageway
  • Guided Busway
  • Roundabout
  • Shared Use Carriageway
  • Single Carriageway
  • Slip Road

Possible values of the structure field:

  • Road In Tunnel
  • null

Possible values of the function field:

  • A Road
  • B Road
  • Local Access Road
  • Local Road
  • Minor Road
  • Motorway
  • Restricted Local Access Road
  • Secondary Access Road

Parameters

NameDescription
location
path
string
Postcode, coordinates in the lat,long format or UPRN in the uprn12345678 format.
api_key
query
enum

Your API key.

DEMO key allows you to test the method in the W6 0 postcode sector, or in the [[51.492, -0.25], [51.502, -0.225]] rectangle.

Request URL:
https://crystalroof.co.uk/customer-api/transport/closest-roads/v1/{location}?api_key=DEMO
Possible responses with examples
Code
Description
200
Success
401
Unauthorized
402
Payment Required
403
Forbidden
429
Too Many Requests
500
Internal Server Error