Julian Simioni
204f5297de
Remove all leading newlines in files
7 years ago
Julian Simioni
02aac0c13e
Remove use stricts
7 years ago
missinglink
e01fdb85c9
support aliases for label generation
7 years ago
missinglink
7a01e794cf
support aliases for name fields
7 years ago
Julian Simioni
dccad99d78
Move sizeCalculator middleware tests to the correct place
7 years ago
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
Diana Shkolnikov
cb59e305b0
log number of streets to be interpolated
7 years ago
Stephen Hess
05da79923f
wrap interpolation service call to intercept errors
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
Adam Rousell
8d7c01dcbe
Added tests for postcode fix
7 years ago
Stephen Hess
cf167ce933
map sources from helper/type_mapping.js
7 years ago
Stephen Hess
41831ab7a0
converted middleware/interpolate to use injected service
7 years ago
Stephen Hess
92d18af886
updated changeLanguage to injection model
7 years ago
Stephen Hess
775fd1f568
updated code+tests to findById name array output format
7 years ago
Stephen Hess
5a8ddd6268
added debug logging for sorting
8 years ago
Stephen Hess
238b49a0d8
added should_execute to sortResponseData
8 years ago
Stephen Hess
5d7a467909
added response data sorting middleware
8 years ago
Stephen Hess
8429e0f22a
added response data sorting middleware
8 years ago
Kevin Ennis
512cec9945
Prefer openaddresses results with zip code
8 years ago
Diana Shkolnikov
e1eeb25776
fix: geonames ids should not be misrepresented in hiearchy
8 years ago
Diana Shkolnikov
e46c17a84a
Sort interpolated results to show address first
8 years ago
missinglink
8d774ab6d3
language service
8 years ago
Peter Johnson
43131248b7
language: fallback scenario from invalid querystring to valid header
8 years ago
Peter Johnson
39b1367778
language: accept param as well as request headers
8 years ago
Peter Johnson
e761f99422
add unit tests for language
8 years ago
Peter Johnson
1847fb3692
add unit tests for language
8 years ago
Diana Shkolnikov
587c1ede6c
remove empty file that snuck in
8 years ago
Diana Shkolnikov
6dd4cc9bd8
fix postalcodes not showing up in results
8 years ago
missinglink
3a4d26077a
interpolation: fix: source_id mapping
8 years ago
Peter Johnson
69be6e062a
service: interpolation: tests
8 years ago
Diana Shkolnikov
30590a41d3
fix: match_type and confidence score were not correct for certain queries
8 years ago
Stephen Hess
e35ba28137
add proxyquire to tests for pelias-logger to swallow some error logging
8 years ago
Stephen Hess
be2a336038
updated naming from component to structured
8 years ago
Stephen Hess
da72a968f9
switch importance of address/street
8 years ago
Stephen Hess
3bb6a30a9c
preserve both `locality` and `borough` results when no `borough` supplied
...
because we have to treat the `city` value as a possible `borough` when not supplied, both `borough` and `locality` results must be preserved when no `borough` is explicitly supplied. For example, `city=Manhattan` must preserve both the borough of Manhattan in New York and the locality of Manhattan in Kansas.
8 years ago
Stephen Hess
8ae5b5c6f7
treat country and more granular than dependency
...
this is to ensure that `country=united states` returns the country before any of the US dependencies that happen to contain "United States"
8 years ago
Stephen Hess
d03a8c4586
added support for component geocoding
...
- created `/component` route
- broke out trimByGranularityComponent but could conceivably be combined with existing
- added `address` support to text_parser
- added `component` sanitizer wrapper
8 years ago
Stephen Hess
916e7d6736
made `locality` and `localadmin` equivalent in fallback scoring
8 years ago
Stephen Hess
c3451bbec0
added city input/results support
...
just uses the original scoring, which is open to debate
8 years ago
Stephen Hess
d230367f02
changed the variable passed to the label generator
8 years ago
Stephen Hess
beb309ca07
moved assignLabels to fire before geojsonify
8 years ago
Stephen Hess
94eaafd39a
setup labelGenerator to have a default
8 years ago
Stephen Hess
248b1299c8
added post-processing step to generate labels
...
injects label generation function for easier unit testing
moved label generation code to separate package
8 years ago
Diana Shkolnikov
3fe113645f
feat: check for preferred record when dupe found
8 years ago
Diana Shkolnikov
21d4bb63f3
feat: add accuracy field
8 years ago
Diana Shkolnikov
fd3ec97ad0
add new confidence score computation for fallback query type
8 years ago
Diana Shkolnikov
9fd19242e7
make existing confidence score only handle the original query type
8 years ago
Stephen Hess
df2ac8c91b
added `street` to trimByGranularity
8 years ago
Stephen Hess
d5e993fc11
included `localadmin`, `macrocounty`, `macroregion`, and `dependency`
8 years ago