Retrieving the Closest Postcode to Geo-Coordinates

Request

Find postcode nearest to a given latitude and longitude:

GET /locations/postcode?&lat=<latitude>&long=<longitude>

Response

HTTP/1.1 200 OK
WC1B3QQ

Failure

Invalid parameter combination or data types submitted:

HTTP/1.1 400 BAD REQUEST

User doesn't have the required permission:

HTTP/1.1 403 FORBIDDEN

Not found:

HTTP/1.1 404 NOT FOUND

When service is unavailable. Retrying the request may work:

HTTP/1.1 503 SERVICE UNAVAILABLE

Other errors:

HTTP/1.1 500 INTERNAL SERVER ERROR

results matching ""

    No results matching ""