Page MenuHomePhabricator

[SPIKE] Explore OpenStreetMap as a source for location data
Open, In Progress, Needs TriagePublic

Description

OpenStreetMap may be a suitable candidate to populate the location field in Upload Wizard's Describe step, as per this prototype UI.

Tasks

  • assess availability of APIs to populate a location auto-complete field
  • understand how geo-coordinates can be handled
  • get a glimpse of OpenStreetMap's content

Report

  • We're looking for a geocoder, which takes free text as input and outputs geo-coordinates
  • we can invoke the geocoder on user input in an autocomplete lookup widget like OOUI's LookupElement
  • if available mappings between OpenStreetMap (OSM) and Wikidata (WD) items have a fair coverage, we'll directly query Wikidata

Geocoders

Source: https://wiki.openstreetmap.org/wiki/Geocoding#Open_source_geocoders

OSM-WD mappings

Conclusion

  • Wikidata mapping coverage is very low
  • Pelias looks like the healthiest and most up-to-date geocoder

Actions

  • Try to spin up a Pelias instance with OSM data
  • in case of any issue with Pelias, try to spin up a Photon instance