Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/pelias/api

HTTP API for Pelias Geocoder
https://github.com/pelias/api

Store sanitised types from layers parameter

This moves the list of types created by sanitising the layer API
parameter from clean.layers to ...

4037c49c4b15439a59143ceaf4c196eb97ab0ace authored over 9 years ago by Julian Simioni <[email protected]>
Add source parameter sanitiser

3479325fa84690b238e2fb40a725ee0268e68282 authored over 9 years ago by Julian Simioni <[email protected]>
Separate concerns of address parser

The address parser currently does two things:
1.) make some intelligent guesses as to possible a...

b9152dbe299bf231b5d8847c976090a2a4aff60e authored over 9 years ago by Julian Simioni <[email protected]>
Move cmd.type setting logic to types helper

1573f3a3fac92aa96aab08176afc6d39240494f1 authored over 9 years ago by Julian Simioni <[email protected]>
Fix reference to geoname

This is just in a unit test, so it technically passes, but geonames is
not a valid layer option ...

eed010835ba9b719e8014690c22fadae0a1f9fb9 authored over 9 years ago by Julian Simioni <[email protected]>
Add sources -> types mapping file

ef42ad4d2ee8b17ddf1a25af515c651988b98669 authored over 9 years ago by Julian Simioni <[email protected]>
Remove layer configuration based on address parsing

This code doesn't seem like it will be triggered very often (due to it
comapring space delimited...

ad8db9b8e9aabebda9185fd73f0edc65e061e165 authored over 9 years ago by Julian Simioni <[email protected]>
Remove default_layers_set flag!

After refactoring, this flag is no longer needed, as all areas of the
code that care about layer...

3ff175243478bc8115251cf49e0aa439a822d03e authored over 9 years ago by Julian Simioni <[email protected]>
Whitespace

fb0cf514e97f96fc78f8ca595928fb0b75edf075 authored over 9 years ago by Julian Simioni <[email protected]>
Remove loops and many global checks from sanitiser tests

Modifying these sanitiser tests became extremely hard because almost all
of them were looping ov...

d35544cdf4861bfb79b04c89ee5ff6c8312317c5 authored over 9 years ago by Julian Simioni <[email protected]>
Remove seemingly unhelpful comment

e42cb4a746becc8fdc643ecc7fc2fd288dc5d0a5 authored over 9 years ago by Julian Simioni <[email protected]>
Rename query/indidces to query/types

It didn't really contain a list of indices.

24349a3839d3712bedecd57dbbbd3a03c34b6eb3 authored over 9 years ago by Julian Simioni <[email protected]>
Add types middleware

This middleware looks at the list of types that will be sent to
Elasticsearch, if it's an empty ...

6f0ad678eb91b9c089d71f67bf6a8cf4a1abf39e authored over 9 years ago by Julian Simioni <[email protected]>
Calculate intersection of types requested by source and layers params

a479de7527d1633a56880c53d3ddb41c16648c6d authored over 9 years ago by Julian Simioni <[email protected]>
Fix inconsistently named imported module

470458317811353db9ce3415617654f0ca653cbe authored over 9 years ago by Julian Simioni <[email protected]>
Merge branch 'master' of github.com:pelias/api into confidence

771c5563ec7ed3a72d67c38c065da318d96cc6e4 authored over 9 years ago by Diana Shkolnikov <[email protected]>
Merge pull request #210 from pelias/responses

Refactor responses to match geocodejson spec

2ad091b6879fb9e5b92e50fe297e35b2537e04ca authored over 9 years ago by Diana Shkolnikov <[email protected]>
Update `local_admin` to `localadmin`

536a16ec94a4b43ddb3db8d41591d7517af7d9d5 authored over 9 years ago by Diana Shkolnikov <[email protected]>
Properly map geoname results' `layer` and `source` properties

75aa235eb8c2b52152e32c9b090c969c9283d569 authored over 9 years ago by Diana Shkolnikov <[email protected]>
Fix relativeScore config value setting

d9cb96dad22e7df0764b71992b95bd16d0ecf20c authored over 9 years ago by Diana Shkolnikov <[email protected]>
Confidence score calculation

Fixes pelias/pelias#120

562338635c826596e95e50fc6959445b3a229fa0 authored over 9 years ago by Diana Shkolnikov <[email protected]>
Fix missing legacyUrl behavior

2b9fbdfd102eefe70cc9ee00ad71988b2f0f4f1d authored over 9 years ago by Diana Shkolnikov <[email protected]>
Merge branch 'master' of github.com:pelias/api into responses

985bfb5911eea0e4b728a867e23ab460f1daf5b5 authored over 9 years ago by Diana Shkolnikov <[email protected]>
Merge branch 'v1-ciao'

fb2021b65255d7719e0c6ad1c44358ee266bb98d authored over 9 years ago by Julian Simioni <[email protected]>
Update ciao tests for /v1

63d0447b2503967ef5545e44813eaaeac9624072 authored over 9 years ago by Julian Simioni <[email protected]>
Change type back to layer... oooops

1d8db6e5d1fb240b695cb2e06be19a09ab63a72b authored over 9 years ago by Diana Shkolnikov <[email protected]>
Merge branch 'simple-semver'

3b5fd79102feb02c9b6d2fd2abb82964cf7c55f6 authored over 9 years ago by Julian Simioni <[email protected]>
Remove unused forwardPath function

4f684c8f2a406fda3f4697dec4524c0655877177 authored over 9 years ago by Julian Simioni <[email protected]>
Disable proxy if legacyUrl config entry is missing

42abb809f65c0aaf4b906cd78fc0661358f4b0b1 authored over 9 years ago by Julian Simioni <[email protected]>
Add checks for presence of results

0f2ff935ec5a6bc5532d51983093c2fb5c981f9b authored over 9 years ago by Diana Shkolnikov <[email protected]>
Use legacy url from peliasConfig

94faafc154bb5ec843cc3894cb1f3c388198f1f7 authored over 9 years ago by Julian Simioni <[email protected]>
Move to simpler routing model

826ad3b569e3863c58150ec4a565aa02b151d6e2 authored over 9 years ago by Julian Simioni <[email protected]>
More property renaming/mapping

* Rename `layer` to `type` and `source`
* Rename `address` block and merge properties to main `g...

1b4b401a667c0a136e95255c5b54b76cae970c80 authored over 9 years ago by Diana Shkolnikov <[email protected]>
Add middleware for renaming placename properties to match WOF

5647d0d19ab1eb1eb94f58a14c14ca1862a4344b authored over 9 years ago by Diana Shkolnikov <[email protected]>
Refactor controllers to be simple midddleware

Refactor search and doc controllers to allow for post-processing middleware
to handle geojson an...

db0e063d8c0d64dc6ae5a7c4e9709eda528fed14 authored over 9 years ago by Diana Shkolnikov <[email protected]>
Add V1 routes with proxying to legacy

Using the semver middleware, handle requests to the new v1 api as well
as legacy routes.

e3961187b220a5f08fcbc773bc37ccfd89eab5ef authored over 9 years ago by Julian Simioni <[email protected]>
Move routes configuration to separate file

c66d2edde2c198a8186bfdb7fb24c9883d277dfb authored over 9 years ago by Julian Simioni <[email protected]>
Add semver middleware

This uses the http-proxy module to send requests to another API instance
based on the version st...

fc6ed1c7f33d1e820633d4921639a2359f6ecc80 authored over 9 years ago by Julian Simioni <[email protected]>
Merge branch 'wrap-longitude'

6f1627da69c4762a46b1c3707971e304ee229ee7 authored over 9 years ago by Julian Simioni <[email protected]>
Fix longitude-sanitization tests.

test/unit/sanitiser/(search, suggest, reverse).js
-Update/fix all of the tests that started fai...

762ef85f5c3b5b387c505e034a2044eee9cbbf8b authored over 9 years ago by Severyn Kozak <[email protected]>
Remove checks for longitude validity.

sanitiser/_geo.js
-Remove the code that verified `longitude` validity, to allow
longitude valu...

d000868800fdcd5eb2c0052d9e87f3f194f8d629 authored over 9 years ago by Severyn Kozak <[email protected]>
Verify that bbox longitude is not NaN.

sanitiser/_geo.js
-The removal of the longitude sanitizer might result in a NaN
longitude valu...

88680398355342c50d3aba9fd2f3447209ddd416 authored over 9 years ago by Severyn Kozak <[email protected]>
Remove latitude restrictions

b547111d524b9ddc97692959a92b2f9b8be016bc authored over 9 years ago by Julian Simioni <[email protected]>
sanitiser/_geo.js: don't pass base to parseFloat().

78bea9d8149a4773e02493c71b4edf3c835c1a45 authored over 9 years ago by Severyn Kozak <[email protected]>
Add more test-cases for invalid bbox values.

test/unit/sanitiser/search.js
-Add some more sanity-check test-cases to verify that bbox
valid...

9b77b4434ffcaf62540893c1d38c9367199c6a3e authored over 9 years ago by Severyn Kozak <[email protected]>
Remove latitude limits

b68bae25550885d6eace8589dba99261e9194548 authored over 9 years ago by Julian Simioni <[email protected]>
Replace array iteration boilerplate with .map

Keeps the focus of the code on the actions to be performed, rather than
the grunt work of iterat...

17ba5da6d592fd08ee357bcfe9f408c326cb6e82 authored over 9 years ago by Julian Simioni <[email protected]>
Mark previously invalid lat/lon test values as valid

These examples should all now pass with the lat/lon wrapping.

396f27dcba05b2d1d2812d216b8eeda4302bfcf0 authored over 9 years ago by Julian Simioni <[email protected]>
Merge branch 'rename-doc-to-place'

472c8a4a05dbd8f2835316f63c00c2d6ac773b4b authored over 9 years ago by Julian Simioni <[email protected]>
Add places endpoint to API docs

a976b7b258a587478ad6c91bc27869e827209a1a authored over 9 years ago by Julian Simioni <[email protected]>
Move files

2fce64f75a6dddbc1548430513459228a0a9a8d4 authored over 9 years ago by Julian Simioni <[email protected]>
Rename doc endpoint to place

167547a6c1cda52ec3a1b1ecb5a5d1839a143a18 authored over 9 years ago by Julian Simioni <[email protected]>
Whitespace

4e74e9b681219601309fc84b3ac2dc083d900fb8 authored over 9 years ago by Julian Simioni <[email protected]>
Merge pull request #209 from pelias/master

merge api@master in to api@production

69e4478f21e908bfdc847ead865cbb403369acc5 authored over 9 years ago by Diana Shkolnikov <[email protected]>
update unit test

776b0ce1e1c9c56ba49a6ec6a6992b8f05252aa4 authored over 9 years ago by Peter Johnson <[email protected]>
Merge pull request #171 from pelias/phrase_slop

phrase slop query modifications

ee3c96f84b535edae7d247c7ca9280b66dd4afa3 authored over 9 years ago by Peter Johnson a.k.a. insertcoffee <[email protected]>
Merge pull request #192 from pelias/admin-fields

Search query builder not checking all available admin values

7f265c0f6733288f845ba9651261fdfabc5fa1bf authored over 9 years ago by Diana Shkolnikov <[email protected]>
Fix bug introduced by moving leftovers.join into the if() statement

d7871747e13ba7b474c9f31f1cbe825a41033172 authored over 9 years ago by Diana Shkolnikov <[email protected]>
Use address_weights.js in tests instead of hardcoding boost values

49d439425e2ab6cc65476f86df0f56e27aeeaf94 authored over 9 years ago by Diana Shkolnikov <[email protected]>
Remove proxyquire from adminField test

Add comments and refactor a bit more for clarity in query/search.js

743d8efa54dac6e745382b5164762dc64393e6c5 authored over 9 years ago by Diana Shkolnikov <[email protected]>
Search query builder not checking all available admin values

Fixes #187

ab436d5dfb509e6af39f8295d70edd3c357ffc10 authored over 9 years ago by Diana Shkolnikov <[email protected]>
Merge pull request #158 from pelias/multicore

run webserver on all available cores, resolves #6

342e0f1ed430d3743029fae66cd07c58362cad8d authored over 9 years ago by Peter Johnson a.k.a. insertcoffee <[email protected]>
change dependency to git url until PR merged upstream, test travis against 0.10,0.12

e3efeb66d18374524f89696754db0a024c27dc73 authored over 9 years ago by Peter Johnson <[email protected]>
Merge branch 'master' of github.com:pelias/api into multicore

3a802b96915bbb230a47ed505f809337120f43b3 authored over 9 years ago by Peter Johnson <[email protected]>
phrase slop query modifications

d8e86d5f17133eedb8fde96f3fe754a99cb0a373 authored over 9 years ago by Peter Johnson <[email protected]>
Merge branch 'production' of github.com:pelias/api into production

1151932300aa3d59cd28210e6ee89dbc22bbf616 authored over 9 years ago by Peter Johnson <[email protected]>
Merge pull request #169 from pelias/ngram-address-parser

Address Parser

1b6d3feb27398e5534ce0da0c7fcf75eba0ce84f authored over 9 years ago by Harish Krishna <[email protected]>
moving the logic for each of the three parsed addresses out into their own function

fae9aae3d3f379c9676136f37d1089a917b9c022 authored over 9 years ago by Harish Krishna <[email protected]>
keys -> key

It's easy to misread and think keys contains a collection of some kind

e57d0b38edc52ff29067c98ed334c21a80d8193a authored over 9 years ago by Harish Krishna <[email protected]>
Revert "match the whole query with phrase.default"

This reverts commit 1c763eeb7504b79ee412d599ab003b153243bf37.

b3d958fe5a3d000b0bc1f9747025cf7ae1ed8ef9 authored over 9 years ago by Harish Krishna <[email protected]>
match the whole query with phrase.default

1c763eeb7504b79ee412d599ab003b153243bf37 authored over 9 years ago by Harish Krishna <[email protected]>
removing admin2 match from the full valid address match

b57621c0a9b2e188c3472ca24b435c8e679d8fde authored over 9 years ago by Harish Krishna <[email protected]>
Revert "splitting admin_parts and input_regions check"

This reverts commit 4a45e458abed0ac680fc5ef265c256555395c5f9.

8afc5ff004290d2691b0208b1e24c2e6ec653e2a authored over 9 years ago by Harish Krishna <[email protected]>
test search query for valid address full & partial

d6bcc1b4004e5f63a0e5ba42a9234eb62b74c8e3 authored over 9 years ago by Harish Krishna <[email protected]>
splitting admin_parts and input_regions check

4a45e458abed0ac680fc5ef265c256555395c5f9 authored over 9 years ago by Harish Krishna <[email protected]>
tests search

36cc6415d08817245d78867fdea9ffb56b323375 authored over 9 years ago by Harish Krishna <[email protected]>
tests suggest sanitiser

35105015b22852c5c6cdee5acf2c6a6e80258ca1 authored over 9 years ago by Harish Krishna <[email protected]>
Testing search sanitisers

all sanitiser tests should test sanitizing input, lat/lon etc..
query parsing is tested seperate...

e00c5aa2ad01ea67776e39228643a7bd8eaeb52e authored over 9 years ago by Harish Krishna <[email protected]>
removing landmarks (was an experiment - has got nothing to do with address parsing)

b361d4ee69bf1f8c0d77df1baaa0fa3b6f31f359 authored over 9 years ago by Harish Krishna <[email protected]>
Merge branch 'master' into ngram-address-parser

dbd16640423397f7665be6b95d4f907f66134282 authored over 9 years ago by Harish Krishna <[email protected]>
TESTS!

95c0e7461ded0f0e3ef201f234c6be97fa249853 authored over 9 years ago by Harish Krishna <[email protected]>
2.2.0

5401ed996213415338197a4342100fa5ac034376 authored over 9 years ago by Harish Krishna <[email protected]>
Merge pull request #163 from pelias/err-fix

Error handling bug fix

6efe46b796873540e2217668d8f721dd45296220 authored over 9 years ago by Harish Krishna <[email protected]>
timeout is one word

3ed4842e86bb2713d4f8500e5a53fbdd7329fdf3 authored over 9 years ago by Harish Krishna <[email protected]>
typeof error should be string

8e17f2817078fe264cb645290899f772e6b88c41 authored over 9 years ago by Harish Krishna <[email protected]>
Merge branch 'master' into ngram-address-parser

e636e6830f3e937e627a7b5e3e863161cf137f5a authored over 9 years ago by Harish Krishna <[email protected]>
Merge pull request #165 from pelias/suggest-no-more

Remove all suggest code

e56a40f17215efec44d61ec6372ecedeef61a78a authored over 9 years ago by Harish Krishna <[email protected]>
err & err.message instead of err.message

b3f85ebc17d94e564eefc1132c6c6b4bfa486487 authored over 9 years ago by Harish Krishna <[email protected]>
use 1.3.0

https://github.com/DamonOehlman/addressit/pull/13 got merged!

ccf26378d0b688985f9812592a3d06437ae896c0 authored over 9 years ago by Harish Krishna <[email protected]>
adding admin_boost

708c24195d935fc097fde0994f20810b1573b0b4 authored over 9 years ago by Harish Krishna <[email protected]>
removing the console.log

2f49322fb72178922eb228172077918cb8f75ac8 authored over 9 years ago by Harish Krishna <[email protected]>
moving all query parsing logic into its own helper. Tests to come

495c3251a438ee91801121cda6d326e43f780a85 authored over 9 years ago by Harish Krishna <[email protected]>
moving sort logic.. popularity then population first!

f78f49d8574161749a7109bd21edf51cd54443af authored over 9 years ago by Harish Krishna <[email protected]>
weighing admin2 equally with local_admin, locality and neighborhood.

6011e4ee2b40e13c521cc1828f5b572ed4f8d195 authored over 9 years ago by Harish Krishna <[email protected]>
removing an outrageous if condition

13e9aadeafd52d19f4d0e6a34cf0e680bc62b5f8 authored over 9 years ago by Harish Krishna <[email protected]>
if the query has a number - search addresses

a8c090252a85a005c3df26304c7d7ebbfae567ba authored over 9 years ago by Harish Krishna <[email protected]>
updateing isNumber regex

346f187c3e1bc13bdbd6baf05f182cf96c843af2 authored over 9 years ago by Harish Krishna <[email protected]>
no need to hit address parser if the input has just one token or two and no numbers

Ex: new, new york, minneapolis etc dont need address parsing but 'starbucks 10010' might need it

e1f3cfa0d3b4aa24349d882f44154e7e54aef132 authored over 9 years ago by Harish Krishna <[email protected]>
splitOnDelim first followed by a space tokenizer

ebd4a5a08ab9cc67680a24fe332e675d18afc838 authored over 9 years ago by Harish Krishna <[email protected]>
no address parsing required if there are only 2 or less tokens

a4d09f8e129240d21ac8bd8364bca4605b432e0a authored over 9 years ago by Harish Krishna <[email protected]>