Mechanical Edits/merylstreet semibot

From OpenStreetMap Wiki
Jump to navigation Jump to search

Open Data Métropole Nice Côte d'Azur recycling points bot (https://www.openstreetmap.org/user/merylstreet_semibot)

Purpose

The purpose of this task is to add missing amenity=recycling tags with their respective properties in the region by aggregating data from the API and simplifying it so it can be imported into JOSM and validated before upload.

How it's done

Script for gathering recycling points from the Nice Open-Data API in OSM-compatible format - https://github.com/merylstreet/nicecotedazur_recyclage

Script needs to be run separately for each city and produces a separate csv file

Source of the data

http://opendata.nicecotedazur.org/data/dataset/cartographie-des-points-d-apport-volontaire-tri-des-dechets-points-de-recyclage

Open Licence http://opendata.nicecotedazur.org/data/pdf/licence_ouverte.pdf

Tags conversion API/OSM

'ORDURES MENAGERES': {'recycling:waste':'yes'}

'PAPIER': {'recycling:paper':'yes'}

'TEXTILE': {'recycling:clothes':'yes'}

'VERRE': {'recycling:glass_bottles':'yes'}

'EMBALLAGES MENAGERS': {'recycling:beverage_cartons':'yes', 'recycling:metal_packaging':'yes', 'recycling:cans':'yes', 'recycling:plastic_packaging':'yes', 'recycling:plastic_bottles':'yes'}

'AERIEN':{'recycling_type':'container'}

'ENTERRE': {'recycling_type':'container', 'location':'underground'}

'SEMI ENTERRE': {'recycling_type':'container', 'location':'underground'}

'ASCENSEUR': {'recycling_type':'container', 'location':'underground'}