@digitransit-search-util/digitransit-search-util-execute-search-immidiate 3.0.0 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +6 -5
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -330,15 +330,16 @@ export function getSearchResults(
|
|
|
330
330
|
|
|
331
331
|
if (allSources || sources.includes('Datasource')) {
|
|
332
332
|
const geocodingLayers = ['venue', 'address', 'street'];
|
|
333
|
-
|
|
334
|
-
|
|
333
|
+
if (targets.includes('Stations')) {
|
|
334
|
+
geocodingLayers.push('station'); // search stations from OSM
|
|
335
|
+
}
|
|
335
336
|
searchComponents.push(
|
|
336
337
|
getGeocodingResults(
|
|
337
338
|
input,
|
|
338
339
|
searchParams,
|
|
339
340
|
language,
|
|
340
341
|
focusPoint,
|
|
341
|
-
|
|
342
|
+
geocodingSources.join(','),
|
|
342
343
|
URL_PELIAS,
|
|
343
344
|
minimalRegexp,
|
|
344
345
|
geocodingLayers,
|
|
@@ -444,14 +445,14 @@ export function getSearchResults(
|
|
|
444
445
|
if (allTargets || targets.includes('Locations')) {
|
|
445
446
|
searchParams.dedupestops = 1;
|
|
446
447
|
}
|
|
447
|
-
const
|
|
448
|
+
const feeds = feedIDs.map(v => `gtfs${v}`).join(',');
|
|
448
449
|
searchComponents.push(
|
|
449
450
|
getGeocodingResults(
|
|
450
451
|
input,
|
|
451
452
|
searchParams,
|
|
452
453
|
language,
|
|
453
454
|
focusPoint,
|
|
454
|
-
|
|
455
|
+
feeds,
|
|
455
456
|
URL_PELIAS,
|
|
456
457
|
minimalRegexp,
|
|
457
458
|
geocodingLayers,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digitransit-search-util/digitransit-search-util-execute-search-immidiate",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"description": "digitransit-search-util execute-search-immidiate module",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"publishConfig": {
|
|
@@ -27,5 +27,5 @@
|
|
|
27
27
|
"@digitransit-search-util/digitransit-search-util-helpers": "2.0.0",
|
|
28
28
|
"lodash": "4.17.21"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "d47e439a2d01ec41702a85ac226a7bc1ccaaa47c"
|
|
31
31
|
}
|