|
|
@ -56,6 +56,10 @@ function convertToGeocodeJSON(req, res, next, opts) { |
|
|
|
// Helpful for debugging and understanding how the input impacts results.
|
|
|
|
// Helpful for debugging and understanding how the input impacts results.
|
|
|
|
res.body.geocoding.query = req.clean; |
|
|
|
res.body.geocoding.query = req.clean; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// remove arrays produced by the tokenizer (only intended to be used internally).
|
|
|
|
|
|
|
|
delete res.body.geocoding.query.tokens_complete; |
|
|
|
|
|
|
|
delete res.body.geocoding.query.tokens_incomplete; |
|
|
|
|
|
|
|
|
|
|
|
// OPTIONAL. Warnings and errors.
|
|
|
|
// OPTIONAL. Warnings and errors.
|
|
|
|
addMessages(req, 'warnings', res.body.geocoding); |
|
|
|
addMessages(req, 'warnings', res.body.geocoding); |
|
|
|
addMessages(req, 'errors', res.body.geocoding); |
|
|
|
addMessages(req, 'errors', res.body.geocoding); |
|
|
|