{% extends 'base/layout.html' %} {% load helpers %} {% block title %}Geocode Sites{% endblock %} {% block content %}

{{ located }} of {{ total }} sites have coordinates; {{ with_county }} have a county. Sites without coordinates never match an outage by distance.

Geocoding takes several minutes (one lookup per unique address), so it runs from the command line on the NetBox host:

python manage.py geocode_sites            # dry run: lists matched / unmatched / skipped
python manage.py geocode_sites --apply    # write latitude, longitude and county

US Census geocoder first, OpenStreetMap fallback only within the address's own state. Ambiguous or unmatched addresses are listed, never guessed — fix them on the site and re-run.

Sites without coordinates {{ missing|length }}
{% for s in missing %} {% empty %} {% endfor %}
SitePhysical address
{{ s.name }}{{ s.physical_address|placeholder }}
Every site has coordinates.
{% endblock %}