{% load i18n %}

{% blocktrans trimmed %} lookup multiple areas {% endblocktrans %}

URL:
  • /areas/[{% trans "area IDs" %}]
  • /areas/[{% trans "area IDs" %}]/geometry
  • /areas/[{% trans "type(s)" %}]
  • /areas/[{% trans "name prefix" %}]
{% trans "Parameters" %}:
{% blocktrans trimmed %} Separate multiple parameters with commas. Name prefix means it will return any area that starts with the string given. {% endblocktrans %} {% include "mapit/api/areas-types.html" %}
{% trans "Optional query parameters" %}:
  • generation, {% trans "to return areas in that generation (type and name lookups only)" %}.
  • min_generation, {% trans "to return areas since that generation (type and name lookups only)" %}.
  • type, {% trans "to restrict results to a type or types (multiple separated by commas; name lookup only)" %}.
  • country, {% trans "to restrict results to areas with particular country codes (multiple separated by commas; type and name lookups only)" %}.
{% trans "Returns" %}:

{% blocktrans trimmed %} Information on multiple areas that match the parameters provided, as a dictionary indexed by area ID. The geometry argument lets you fetch multiple single area geometry results at once. {% endblocktrans %}

{% include "mapit/api/areas-examples.html" %}