{% load url from compat %}

lookup by postcode

URL:
/postcode/[postcode]
Returns:

Information on a particular postcode, including its location in {% if country == 'GB' %}both National Grid and {% endif %} WGS84 latitude/longitude, and the areas it is contained within.

Optional query parameters:

generation, to return results from a previous generation.

{% include "mapit/api/postcode-example.html" %}

lookup by partial postcode

URL:
/postcode/partial/[partial postcode]
Returns:

Geographical details for the centroid of the partial postcode specified.

{% include "mapit/api/postcode-example-partial.html" %}