commit
c17ae662fb
2 changed files with 10 additions and 6 deletions
|
@ -87,7 +87,7 @@ jobs:
|
||||||
echo $COMMAND
|
echo $COMMAND
|
||||||
eval $COMMAND
|
eval $COMMAND
|
||||||
- store_test_results:
|
- store_test_results:
|
||||||
path: ~/test_results/rspec.xml
|
path: ~/test_results
|
||||||
lint:
|
lint:
|
||||||
<<: *defaults
|
<<: *defaults
|
||||||
steps:
|
steps:
|
||||||
|
|
|
@ -122,12 +122,16 @@ const adresseOptions = {
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
processResults(data) {
|
processResults(data) {
|
||||||
return {
|
let r = data.features.map(({ properties: { label }, geometry }) => ({
|
||||||
results: data.features.map(({ properties: { label }, geometry }) => ({
|
|
||||||
id: label,
|
id: label,
|
||||||
text: label,
|
text: label,
|
||||||
geometry
|
geometry
|
||||||
}))
|
}));
|
||||||
|
// Allow the user to select an arbitrary address missing from the results,
|
||||||
|
// by adding the plain-text query to the list of results.
|
||||||
|
r.unshift({ id: data.query, text: data.query });
|
||||||
|
return {
|
||||||
|
results: r
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue