{% load url from compat %}

lookup multiple areas

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

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.

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