@digitransit-search-util/digitransit-search-util-execute-search-immidiate 1.2.1 → 1.2.2
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
|
@@ -347,8 +347,10 @@ export function getSearchResults(
|
|
|
347
347
|
}
|
|
348
348
|
if (allTargets || targets.includes('ParkingAreas')) {
|
|
349
349
|
if (allSources || sources.includes('Datasource')) {
|
|
350
|
-
const searchParams =
|
|
351
|
-
|
|
350
|
+
const searchParams = geocodingSearchParams;
|
|
351
|
+
if (geocodingSize && geocodingSize !== 10) {
|
|
352
|
+
searchParams.size = geocodingSize;
|
|
353
|
+
}
|
|
352
354
|
const geocodingLayers = ['carpark', 'bikepark'];
|
|
353
355
|
const feedIds = parkingAreaSources ? parkingAreaSources.join(',') : null;
|
|
354
356
|
searchComponents.push(
|
|
@@ -535,9 +537,8 @@ export function getSearchResults(
|
|
|
535
537
|
}
|
|
536
538
|
if (allSources || sources.includes('Datasource')) {
|
|
537
539
|
const geocodingLayers = ['bikestation'];
|
|
538
|
-
const searchParams =
|
|
539
|
-
size: geocodingSize
|
|
540
|
-
};
|
|
540
|
+
const searchParams =
|
|
541
|
+
geocodingSize && geocodingSize !== 10 ? { size: geocodingSize } : {};
|
|
541
542
|
searchComponents.push(
|
|
542
543
|
getGeocodingResults(
|
|
543
544
|
input,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digitransit-search-util/digitransit-search-util-execute-search-immidiate",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"description": "digitransit-search-util execute-search-immidiate module",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"publishConfig": {
|
|
@@ -28,5 +28,5 @@
|
|
|
28
28
|
"@digitransit-search-util/digitransit-search-util-uniq-by-label": "^1.0.0",
|
|
29
29
|
"lodash": "4.17.21"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "7329304ce6d60ed6a3cf52735c873d2a354043b0"
|
|
32
32
|
}
|