antoine-de
3489517da3
dedup osm/OA address
...
linked to https://github.com/pelias/pelias/issues/541
and maybe to https://github.com/pelias/pelias/issues/541 but I cannot
reproduce it.
and to the fact that there are lots of dupplicates in france like:
[20 rue hector malot
paris](https://mapzen.com/search/explorer/?query=search&text=20%20rue%20hector%20malot%20paris )
that returns 1 result from open address and 1 result from OSM
now we first check which source has a zipcode and if both have, we
prefer OA over OSM
7 years ago
Joxit
551f0227db
Transliterates Saint and Sainte in ES schema see pelias/schema#268
7 years ago
Joxit
d187e7d950
Fix for #1077 , fail to search `Saint..` cities in structured queries
7 years ago
Rhys Kidd
1dfc6988ed
Update to current Pelias contact email address
...
Per https://github.com/pelias/pelias/tree/master/announcements/2018-01-02-pelias-update
replace all @mapzen.com email addresses with the current Pelias contact email address.
grep used to confirm no '@mapzen.com' remain.
7 years ago
sweco-semhul
51709b58ff
Updating ciao tests to reflect current status in master to make them run
7 years ago
Stephen Hess
e0c25d0f57
convert libpostal calls to a microservice
7 years ago
Stephen Hess
b5e48afb35
remove text-analyzer address operation
7 years ago
Stephen Hess
f56deffb8f
allow libpostal configuration in schema w/other services
7 years ago
Diana Shkolnikov
cb59e305b0
log number of streets to be interpolated
7 years ago
Peter Backx
f16565df9e
Verify min and max longitude and latitude
...
Otherwise this can potentially lead to a fairly weird Elasticsearch error mentioned in https://github.com/pelias/pelias/issues/656
7 years ago
Julian Simioni
bc6401842c
Add friendly, coarse specific error message to reverse
...
This error message is updated to mention the coarse-reverse only nature
of Geonames support removal. It also links to the
[tracking ticket](https://github.com/pelias/acceptance-tests/pull/447 )
for Geonames removal which should help provide more context to users.
7 years ago
Stephen Hess
004e3c02b1
completed switch to vs tests over fixtures
7 years ago
Julian Simioni
d577d42d9f
Support geonames non-coarse reverse in deprecation sanitizer
7 years ago
Stephen Hess
110a258130
added initial tests for using vs
7 years ago
Julian Simioni
f9281190ac
Corrrectly filter /place queries by layer
...
`/place` queries have been executing in a way where only the ID, but not
the layer, has been considered when returning records from
Elasticsearch.
It turns out this bug was introduced almost a year and a half ago in
https://github.com/pelias/api/pull/407 . A little, relatively unimportant
bit of code was looking for a property called `layers`:
```
const cmd = req.clean.ids.map( function(id) {
return {
_index: apiConfig.indexName,
_type: id.layers,
_id: id.id
};
});
```
The correct property was `layer`, so no filtering on layer was done in
the resulting [mget](https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-multi-get.html ) query.
There was never an acceptance test for these sorts of queries, but there
is now one in https://github.com/pelias/acceptance-tests/pull/446 . The
unit tests were enforcing the incorrect behavior.
Fixes https://github.com/pelias/pelias/issues/643
7 years ago
Stephen Hess
66d4149f6a
removed references to outdated request parameters
7 years ago
Stephen Hess
02cfa36d24
switched structured query tests away from fixtures
7 years ago
Stephen Hess
da07463999
set req.clean.parser to 'libpostal' when it's called
7 years ago
Stephen Hess
3a862c17ec
move empire include/exclude logic to eojsonify_place_details
7 years ago
Stephen Hess
e4e8d9b0bf
if country_gid exists, remove empire fields
7 years ago
Stephen Hess
05da79923f
wrap interpolation service call to intercept errors
7 years ago
Stephen Hess
18e7673dc1
added empire to coarse translation
7 years ago
Stephen Hess
2df5d6d23b
add empire to coarse reverse controller
7 years ago
Stephen Hess
5b86fbd7d8
add layers parameter support to PointInPolygon service request
7 years ago
Stephen Hess
214c3807eb
added continent, ocean, and marinearea to geojsonify
7 years ago
Stephen Hess
9d54735e41
converted geojsonify_place_details to return instead of modify
7 years ago
Stephen Hess
cd99f87c04
inlined and condensed doc setup
7 years ago
Stephen Hess
5e1360f022
refactored geojsonify, improved test coverage
7 years ago
Stephen Hess
27194a620e
added tests for geocode_place_details
7 years ago
Stephen Hess
e70a668056
added support for continent, ocean, and marinearea placetypes
...
`coarse` now maps to these as well
7 years ago
missinglink
69a820fae0
feat(coarse_reverse): ignore empty abbr properties from PIP service
7 years ago
Diana Shkolnikov
40870c4e04
check for missing parent object in confidence score computation
7 years ago
Diana Shkolnikov
b60e0113b3
check for missing parent object in confidence score computation
7 years ago
missinglink
3913c836e2
feat(coarse_reverse): improve logger assertions
7 years ago
missinglink
b88d2a0abe
feat(coarse_reverse): add try/catch block around synthesizeDoc code
7 years ago
missinglink
45f313d8d9
feat(coarse_reverse): improve logger assertions
7 years ago
missinglink
c72822b805
feat(coarse_reverse): add try/catch block around synthesizeDoc code
7 years ago
Stephen Hess
e67e49421b
updated test
7 years ago
Adam Rousell
8d7c01dcbe
Added tests for postcode fix
7 years ago
Julian Simioni
a233e11d59
Remove Access-Control-Allow-Credentials header
...
This header is only relevant if dealing with authentication via cookies
or other methods in HTTP requests. The Pelias API intentionally doesn't
deal with authentication at all, assuming anyone who wants
authentication will deal with it using a service placed between Pelias
and end users.
Additionally the CORS spec [does not allow](https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS#Credentialed_requests_and_wildcards )
specifying this header while setting a wildcard for
`Access-Control-Allow-Origin`, so it can cause problems in some cases.
Fixes https://github.com/pelias/api/issues/971
7 years ago
Stephen Hess
42097fafb2
treat undefined text-analyzer response as no house number available
7 years ago
Stephen Hess
30b7290990
added stub request_language sanitizer that just allows lang param
7 years ago
Lily He
7ecf770d79
create stackTraceLine helper to debug predicates
7 years ago
Lily He
af03e706b2
debug push takes function & beginTimer returns Date
7 years ago
Sergey Zelenov
1f3bb4608c
Fix typo in test/unit/controller/search_with_ids
...
Seems like a typo, should be `deepEqual` instead of `ok`
7 years ago
Stephen Hess
ab332e43ee
removed unused is_service_enabled predicate
7 years ago
Stephen Hess
951b18e656
switched to has_parsed_text_properties
7 years ago
Stephen Hess
99d6c6ba11
removed language service from schema
7 years ago
Stephen Hess
cf167ce933
map sources from helper/type_mapping.js
7 years ago
Stephen Hess
3c8bfa196e
added interpolation service to schema
...
refactored similar service tests to iterate list of services instead of duplicating many tests for each service
7 years ago