Browse Source

Adding address unit as query input if parsed from user input

pull/1113/head
semhul 7 years ago
parent
commit
92788dd093
  1. 5
      query/address_search_using_ids.js

5
query/address_search_using_ids.js

@ -116,6 +116,11 @@ function generateQuery( clean, res ){
if( ! _.isEmpty(clean.parsed_text.number) ){
vs.var( 'input:housenumber', clean.parsed_text.number );
}
if( ! _.isEmpty(clean.parsed_text.unit) ){
vs.var( 'input:unit', clean.parsed_text.unit );
}
vs.var( 'input:street', clean.parsed_text.street );
// find the first granularity band for which there are results

Loading…
Cancel
Save