{% load i18n %}

{% blocktrans trimmed %} lookup by point {% endblocktrans %}

URL:
  • /point/[SRID]/[x],[y]
  • /point/[SRID]/[x],[y]/box
{% trans "Parameters" %}:
{% blocktrans trimmed %}

SRID is a unique number referring to a particular co-ordinate system; {% endblocktrans %} {% if country == 'GB' %} {% blocktrans trimmed %} the ones you probably are interested in are 27700 for British National Grid, 4326 for WGS84 lon/lat, and 29902 for the Irish National Grid. {% endblocktrans %} {% elif country == 'IT' %} {% blocktrans trimmed %} the ones you probably are interested in are 32632 o UTM zone 32N, for Italy or 4326 for WGS84 lon/lat. {% endblocktrans %} {% else %} {% blocktrans trimmed %} the one you probably are interested in is 4326 for WGS84 normal lon/lat. {% endblocktrans %} {% endif %}

{% blocktrans trimmed %}

x and y are the co-ordinates of the point in the co-ordinate system; note that x,y means longitude,latitude.

{% endblocktrans %}
{% blocktrans trimmed %}
Optional query parameters:
{% endblocktrans %}
  • {% blocktrans trimmed %} type, to restrict results to a particular area type or types (multiple types separated by commas); {% endblocktrans %}
  • {% blocktrans trimmed %} generation, to return results for a previous generation. {% endblocktrans %}
  • {% blocktrans trimmed %} min_generation, to return results since that generation. {% endblocktrans %}
  • {% blocktrans trimmed %} country, to restrict results to areas with particular country codes (multiple country codes separated by commas). {% endblocktrans %}
{% trans "Returns" %}:
{% blocktrans trimmed %}

A hash of the areas that the point is contained within. If the /box version is used, only the area bounding boxes are considered.

{% endblocktrans %} {% include "mapit/api/point-example.html" %}
{% if postcodes_available %}

{% blocktrans trimmed %} lookupnearest postcode {% endblocktrans %}

URL:
/nearest/[SRID]/[x],[y]
{% trans "Parameters" %}:
{% trans "Same as for" %} {% trans "by point" %}.
{% trans "Returns" %}:
{% trans "The postcode closest to the particular point." %} {% include "mapit/api/point-example-nearest.html" %}
{% endif %}