Julian Simioni
2e4cba0459
Merge pull request #507 from pelias/special-case-usa-for-labels
...
added special case for USA in labels
9 years ago
Julian Simioni
af187e6c8e
Merge pull request #505 from pelias/change-macrocountry-to-macrocounty
...
Change macrocountry to macrocounty, add macroregion
9 years ago
Stephen Hess
0076200728
added special case for USA in labels
...
if record is for literal United States, use the full name, otherwise use USA
9 years ago
Stephen Hess
c99fa9f0ef
added support for `macroregion`
9 years ago
Julian Simioni
fd529ccee9
Use new express sendStatus method
...
According to a message on the console:
```
express deprecated res.send(status): Use res.sendStatus(status) instead
middleware/options.js:12:9
```
9 years ago
Julian Simioni
bc39ddd970
Merge pull request #503 from pelias/fix_timeout_error
...
Fix timeout error handling
9 years ago
Julian Simioni
3c1d758229
Fix timeout error handling
...
Timeout errors come back from the Elasticsearch module as Error objects,
so instead of pushing the entire object onto the errors array, we should
just push the message.
I'm not sure if there are other cases where errors are just strings,
errors that aren't objects with a message property are handled as
before.
9 years ago
Diana Shkolnikov
c1b75ee72d
Merge pull request #502 from pelias/pelias-api-218
...
Fix address parsing without spaces after delimiters
9 years ago
Stephen Hess
8a54dbeef0
switched from `macrocountry` to `macrocounty`
9 years ago
Diana Shkolnikov
05f4374b0a
Add more tests without spaces
9 years ago
Stephen K Hess
6e2afb7dd4
Merge pull request #497 from pelias/simplify-label-generation
...
Refactored the label generation code to be simpler
9 years ago
Stephen Hess
f145f65dc0
Merge branch 'master' into simplify-label-generation
9 years ago
Diana Shkolnikov
37d261c047
Removed a new test when merging
9 years ago
Diana Shkolnikov
c415b96ead
Named admin_parts adminParts which caused problems
9 years ago
Diana Shkolnikov
c4f1abcee3
Merge pull request #468 from pelias/autocomplete_api
...
Autocomplete api
9 years ago
Stephen Hess
caa9745aaa
standardized on naming conventions
9 years ago
Stephen Hess
f783560224
split tests into logical units
9 years ago
Diana Shkolnikov
d6e51eff5c
Merge branch 'master' of github.com:pelias/api into pelias-api-218
9 years ago
Julian Simioni
6b9b72e08c
Merge pull request #500 from pelias/strict_unit_tests
...
Handle fatal errors in unit tests
9 years ago
Stephen Hess
c5626d6c5e
added `localadmin` for USA/GBR/default when `locality` isn't available
9 years ago
Stephen Hess
8d0b0e8780
switched to `_.compact` to remove `undefined` values
9 years ago
Julian Simioni
39e149b4d9
Merge pull request #499 from pelias/handle_address_flipping_with_no_admin_lookup
...
Do not apply local naming conventions to records with no admin info
9 years ago
Julian Simioni
d98973c21f
Handle fatal errors in unit tests
...
Due to the way our unit tests are run, a fatal error in the API code
that causes the node process to quit with an error will not be picked up
by `tap-dot`, and the unit tests will still return a passing status
code. This is due to the way status codes from pipes are handled by
default.
Fortunately, there is an ["unofficial bash strict mode"](http://redsymbol.net/articles/unofficial-bash-strict-mode/ )
that helps fix this sort of thing, and by running our unit tests with a
few tweaks we can ensure that any failure in the unit tests is captured.
9 years ago
Julian Simioni
e6e9c1c574
Do not apply local naming conventions to records with no admin info
...
There's no way to decide what to do, and without handling this case the
API will return an error.
9 years ago
missinglink
9a5d425cc8
Merge branch 'master' of github.com:pelias/api into missinglink
9 years ago
Julian Simioni
3e334788af
Merge pull request #486 from pelias/greenkeeper-elasticsearch-11.0.0
...
Update elasticsearch to version 11.0.0 🚀
9 years ago
greenkeeperio-bot
96af007044
chore(package): update elasticsearch to version 11.0.0
...
http://greenkeeper.io/
9 years ago
Stephen Hess
0870e30366
Refactored the label generation code to be simpler
...
Labels are now, outside US/CA/UK, just name+city+country.
Deduping now only occurs on the first 2 parts of the labels which fixes the "Luxembourg, Luxembourg" issue.
9 years ago
Diana Shkolnikov
78aedc3526
Merge branch 'master' of github.com:pelias/api into pelias-api-218
9 years ago
Diana Shkolnikov
368ac483ec
Merge pull request #492 from pelias/borough_support
...
Add borough to geojson output and USA.local labels
9 years ago
Julian Simioni
39502df284
Add borough to geojson output and USA.local labels
9 years ago
Diana Shkolnikov
277153d6ea
Merge pull request #488 from pelias/normalize-parent-ids
...
Convert parent WOF ids to valid Pelias ids to be used by /place
9 years ago
Diana Shkolnikov
8a15234e56
Fix failing test
9 years ago
Diana Shkolnikov
774253beb3
Merge branch 'normalize-parent-ids' of github.com:pelias/api into normalize-parent-ids
9 years ago
Diana Shkolnikov
147c849b58
change admin property names to <place_type>_gid from <place_type>_id
9 years ago
Diana Shkolnikov
82e39fd81f
parent block properties should not be changed, only top level ones
9 years ago
Diana Shkolnikov
201f4d4fb3
Convert parent WOF ids to valid Pelias ids to be used by /place
9 years ago
Diana Shkolnikov
bfc333a203
Merge pull request #482 from pelias/bbox-reformat
...
Change properties.bounding_box to bbox at top level
9 years ago
Diana Shkolnikov
3862dd233e
change admin property names to <place_type>_gid from <place_type>_id
9 years ago
Diana Shkolnikov
10cd693e02
parent block properties should not be changed, only top level ones
9 years ago
Diana Shkolnikov
928597e029
Fix admin parts parsing without spaces after delimeters
9 years ago
missinglink
3a789b4a93
increase autocomplete 'phrase:slop' setting from 2->3
9 years ago
Diana Shkolnikov
7231e229d4
Convert parent WOF ids to valid Pelias ids to be used by /place
9 years ago
Julian Simioni
fb5326084b
Merge pull request #487 from pelias/greenkeeper-tap-dot-1.0.5
...
Update tap-dot to version 1.0.5 🚀
9 years ago
greenkeeperio-bot
0868494778
chore(package): update tap-dot to version 1.0.5
...
http://greenkeeper.io/
9 years ago
Diana Shkolnikov
7ebb653c22
Change properties.bounding_box to bbox at top level
9 years ago
missinglink
f7c64cbae0
merge master
9 years ago
Julian Simioni
178eb0e669
Merge pull request #476 from pelias/quattroshapes_deprecation
...
quattroshapes deprecation warning and wof fallback
9 years ago
Julian Simioni
abbd314ee8
Change deprication message to present tense
9 years ago
Peter Johnson
51279ce2cf
quattroshapes deprecation warning and wof fallback
9 years ago