{% load i18n %}
        <section id="api-by_point">
            <h3>{% blocktrans trimmed %}
                <em>lookup by</em> point
                {% endblocktrans %}</h3>
            <dl>
                <dt>URL:</dt>
                <dd><ul>
                    <li>/point/<i>[SRID]</i>/<i>[x]</i>,<i>[y]</i></li>
                    <li>/point/<i>[SRID]</i>/<i>[x]</i>,<i>[y]</i>/box</li>
                </ul>
                <dt>{% trans "Parameters" %}:</dt>
                <dd>
                {% blocktrans trimmed %}
                <p><i>SRID</i> 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 %}
                </p>
                {% blocktrans trimmed %}
                <p><i>x</i> and <i>y</i> are the co-ordinates of the point in the co-ordinate
                system; note that <i>x,y</i> means <i>longitude,latitude</i>.</p>
                {% endblocktrans %}
                </dd>
                {% blocktrans trimmed %}
                <dt>Optional query parameters:</dt>
                {% endblocktrans %}
                <dd>
                    <ul>
                        <li>
                            {% blocktrans trimmed %}
                                <i>type</i>, to restrict results to a particular area type or types (multiple types separated by commas);
                            {% endblocktrans %}
                        </li>
                        <li>
                            {% blocktrans trimmed %}
                                <i>generation</i>, to return results for a previous generation.
                            {% endblocktrans %}
                        </li>
                        <li>
                            {% blocktrans trimmed %}
                                <i>min_generation</i>, to return results since that generation.
                            {% endblocktrans %}
                        </li>
                        <li>
                            {% blocktrans trimmed %}
                                <i>country</i>, to restrict results to areas with particular country codes (multiple country codes separated by commas).
                            {% endblocktrans %}
                        </li>
                    </ul>
                </dd>

                <dt>{% trans "Returns" %}:</dt>
                <dd>
                {% blocktrans trimmed %}
                    <p>A hash of the areas that the point is contained within. If
                    the /box version is used, only the area bounding boxes are
                    considered.</p>
                {% endblocktrans %}

                {% include "mapit/api/point-example.html" %}
            </dl>
        </section>

{% if postcodes_available %}
        <section id="api-nearest">
            <h3>{% blocktrans trimmed %}
                <em>lookup</em>nearest postcode
                {% endblocktrans %}</h3>
            <dl>
                <dt>URL:</dt>
                <dd> /nearest/<i>[SRID]</i>/<i>[x]</i>,<i>[y]</i> </dd>
                <dt>{% trans "Parameters" %}:</dt>
                <dd>{% trans "Same as for" %} <a href="#api-by_point">{% trans "by point" %}</a>.</dd>
                <dt>{% trans "Returns" %}:</dt>
                <dd>{% trans "The postcode closest to the particular point." %}

                {% include "mapit/api/point-example-nearest.html" %}
            </dl>
        </section>
{% endif %}
