Skip to content

Commit

Permalink
feat: add categories for streets (address and address:street)
Browse files Browse the repository at this point in the history
  • Loading branch information
Joxit committed Jan 22, 2020
1 parent 7bcd4bf commit cdceed1
Show file tree
Hide file tree
Showing 3 changed files with 106 additions and 100 deletions.
4 changes: 4 additions & 0 deletions stream/document.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ function document( source, layer, idprefix ){
// street
doc.setAddress( 'street', geojson.properties.name );

// category
doc.addCategory( 'address' );
doc.addCategory( 'address:street' );

// centroid
var prop = geojson.properties.centroid;
doc.setCentroid({ lon: prop[0], lat: prop[1] });
Expand Down
Loading

0 comments on commit cdceed1

Please sign in to comment.