{% extends "base.html" %} {% block title %}Geocode to Commons{% endblock %} {% block content %}

Geocode coordinates to Commons Category

  1. Overpass query to find OSM polygon that contain given lat/lon.
  2. Sort list of OSM polygons by admin_level descending.
  3. Check each polygon for wikidata tag, starting with highest admin_level first.
  4. If the wikidata tag isn't found try looking for a 'ref:gss' tag and look for matching Wikidata item using the Wikidata Query service (WDQS)
  5. Finally try match by name. Look for nearby items with the same name using WDQS.
  6. Return the most specific Wikidata QID and Commons Category.

Interactive map with clickable pin for geocode testing: click on any location within the map to place a pin and see the geocoding results for that specific point.

Latitude/Longitude: (e.g. 54.375, -2.999)

Examples

{% set repo = "https://git.4angle.com/edward/geocode" %}

source code: {{ repo }}

{% endblock %}