@digitransit-search-util/digitransit-search-util-get-label 1.0.0 → 1.0.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.
Files changed (2) hide show
  1. package/index.js +1 -28
  2. package/package.json +3 -3
package/index.js CHANGED
@@ -3,35 +3,8 @@ import { getNameLabel } from '@digitransit-search-util/digitransit-search-util-u
3
3
  * Returns label for properties
4
4
  *
5
5
  * @name getLabel
6
- * @param {*} properties object that contains
6
+ * @param {*} properties object
7
7
  * @returns {Boolean} true/false
8
- * @example
9
- * const properties: {
10
- "id": "GTFS:MATKA:318915",
11
- "gid": "gtfsmatka:station:GTFS:MATKA:318915",
12
- "layer": "station",
13
- "source": "gtfsmatka",
14
- "source_id": "GTFS:MATKA:318915",
15
- "name": "Rautatientori",
16
- "postalcode": "00100",
17
- "postalcode_gid": "whosonfirst:postalcode:421479569",
18
- "confidence": 1,
19
- "accuracy": "centroid",
20
- "country": "Suomi",
21
- "country_gid": "whosonfirst:country:0",
22
- "country_a": "FIN",
23
- "region": "Uusimaa",
24
- "region_gid": "whosonfirst:region:85683067",
25
- "localadmin": "Helsinki",
26
- "localadmin_gid": "whosonfirst:localadmin:907199715",
27
- "locality": "Helsinki",
28
- "locality_gid": "whosonfirst:locality:101748417",
29
- "neighbourhood": "Kluuvi",
30
- "neighbourhood_gid": "whosonfirst:neighbourhood:85898847",
31
- "label": "Rautatientori, koillinen, Kluuvi, Helsinki"
32
- }
33
- * digitransit-search-util.getLabel(param1, param2);
34
- * //=true
35
8
  */
36
9
  export default function getLabel(properties) {
37
10
  const parts = getNameLabel(properties, true);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digitransit-search-util/digitransit-search-util-get-label",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "digitransit-search-util get-label module",
5
5
  "main": "index.js",
6
6
  "publishConfig": {
@@ -21,7 +21,7 @@
21
21
  "author": "Digitransit Authors",
22
22
  "license": "(AGPL-3.0 OR EUPL-1.2)",
23
23
  "dependencies": {
24
- "@digitransit-search-util/digitransit-search-util-uniq-by-label": "^2.0.0"
24
+ "@digitransit-search-util/digitransit-search-util-uniq-by-label": "^2.1.1"
25
25
  },
26
- "gitHead": "f904285c98141cf0a03ca9c1fab54674c5c47e3e"
26
+ "gitHead": "e965830231331991058200b0989ba0a3a0473b85"
27
27
  }