{% extends "mapit/base.html" %} {% load mapit_i18n %} {% load url from compat %} {% load static from staticfiles %} {% block fulltitle %} {% trans "MapIt : map postcodes and geographical points to administrative areas" %} {% endblock %} {% block content %}
{% include "mapit/index-cross-sell.html" %}

MapIt: {% include "mapit/country.html" %}

{% include "mapit/intro.html" %}

{% trans "MapIt API" %}

{% include "mapit/api/intro.html" %} {% if postcodes_available %} {% include "mapit/api/postcode.html" %} {% endif %} {% include "mapit/api/point.html" %} {% include "mapit/api/area.html" %} {% include "mapit/api/areas.html" %} {% include "mapit/api/generations.html" %}

{% trans "General information" %}

{% trans "Format" %}
{% blocktrans trimmed %}

All calls return JSON, you can generally get an HTML representation by sticking .html on the end.

{% endblocktrans %} {% blocktrans trimmed %}

Whenever an area is returned from MapIt, it is as a dictionary with the following keys: id, name, country, type, parent_area, generation_low, generation_high, codes.

{% endblocktrans %}
{% trans "Historical areas" %}
{% blocktrans trimmed %} By default, calls will return active areas; for some calls you may specify a previous generation to look up instead. {% endblocktrans %} {% include "mapit/index-general-extra.html" %}

{% trans "About MapIt" %}

{% blocktrans trimmed %}

MapIt was written back in 2003 as a postcode lookup to power the original mySociety sites such as WriteToThem. Over time it gained features such as point lookup (for FixMyStreet), and when Ordnance Survey data became freely available in 2010, it was rewritten and made public for the whole UK. {% endblocktrans %} {% include "mapit/index-others.html" %}

{% include "mapit/index-usage.html" %}
{% endblock %}