anthill / 6element

Optimising waste management in recycle centers.
http://weareants.fr/#!/6element
14 stars 13 forks source link

Categorizer for non OSM points #221

Closed bleucitron closed 8 years ago

bleucitron commented 8 years ago

This PR mainly adds the loadPointsFromFiles script, which takes all scrapped points files (that have a bin description similar to OSM ontology) and loads them into the DB with the same schema as OSM points after assigning them categories.

Point list is available here

As for OSM points, categories are stored under the bins columns, which is described by:

{
   t: 'category type',
   a: true // bin availability,
   o: [] // list of all objects accepted
}

This is coherent with RC bins description.

The PR also check for Synonyms while categorizing.

Fixes #213 Fixes #219