mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 07:09:35 +02:00
locations: default opt.results to 5 💥 📝
This commit is contained in:
parent
88c78c243f
commit
3bc2eff530
2 changed files with 2 additions and 2 deletions
|
@ -7,7 +7,7 @@ With `opt`, you can override the default options, which look like this:
|
||||||
```js
|
```js
|
||||||
{
|
{
|
||||||
fuzzy: true // find only exact matches?
|
fuzzy: true // find only exact matches?
|
||||||
, results: 10 // how many search results?
|
, results: 5 // how many search results?
|
||||||
, stations: true
|
, stations: true
|
||||||
, addresses: true
|
, addresses: true
|
||||||
, poi: true // points of interest
|
, poi: true // points of interest
|
||||||
|
|
2
index.js
2
index.js
|
@ -291,7 +291,7 @@ const createClient = (profile, userAgent, request = _request) => {
|
||||||
}
|
}
|
||||||
opt = Object.assign({
|
opt = Object.assign({
|
||||||
fuzzy: true, // find only exact matches?
|
fuzzy: true, // find only exact matches?
|
||||||
results: 10, // how many search results?
|
results: 5, // how many search results?
|
||||||
stations: true,
|
stations: true,
|
||||||
addresses: true,
|
addresses: true,
|
||||||
poi: true, // points of interest
|
poi: true, // points of interest
|
||||||
|
|
Loading…
Add table
Reference in a new issue