@golemio/parkings 1.13.6-dev.1452701867 → 1.13.6-dev.1458851326

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.
@@ -7,21 +7,42 @@ CREATE INDEX parkings_secondary_sanitized_location_idx ON parkings_secondary US
7
7
 
8
8
  CREATE INDEX parkings_location_sanitized_location_idx ON parkings_location USING gist(sanitized_locations);
9
9
 
10
- CREATE OR REPLACE VIEW v_parkings_filtered as WITH parkings_loc as (
11
- select coalesce(p.id, pl.id) as id, coalesce(pl.sanitized_locations, p.sanitized_location) as location from ONLY parkings p
12
- left join parkings_location pl
13
- on p.id = pl.id)
14
- SELECT
15
- *
16
- FROM
17
- ONLY parkings p
18
- UNION
19
- ALL
20
- SELECT
21
- *
22
- FROM
23
- ONLY parkings_secondary ps
24
- where ps.id not in (
25
- select distinct ps.id
26
- from parkings_loc plo
27
- inner join parkings_secondary ps on ST_Intersects(plo.location, ps.sanitized_location));
10
+ CREATE or REPLACE view v_parkings_filtered as
11
+ with parkings_loc as (
12
+ select
13
+ p.id as id,
14
+ pl.sanitized_locations as location
15
+ from
16
+ only parkings p
17
+ inner join parkings_location pl
18
+ on
19
+ p.source = pl.source
20
+ and p.source_id = pl.source_id
21
+ where
22
+ p.source in (
23
+ select
24
+ source
25
+ from
26
+ parking_sources ps
27
+ where
28
+ ps.api_v3_allowed )
29
+ )
30
+ select
31
+ *
32
+ from
33
+ only parkings p
34
+ union
35
+ all
36
+ select
37
+ *
38
+ from
39
+ only parkings_secondary ps
40
+ where
41
+ ps.id not in (
42
+ select
43
+ distinct ps.id
44
+ from
45
+ parkings_loc plo
46
+ inner join parkings_secondary ps on
47
+ ST_Intersects(plo.location,
48
+ ps.sanitized_location));
@@ -2089,7 +2089,7 @@ components:
2089
2089
  example: Feature
2090
2090
  ParkingEntrance:
2091
2091
  type: object
2092
- title: Parking Space
2092
+ title: Parking Entrance
2093
2093
  properties:
2094
2094
  geometry:
2095
2095
  type: object
@@ -2627,7 +2627,7 @@ components:
2627
2627
  max_weight: 1500
2628
2628
  OpeningHours:
2629
2629
  type: object
2630
- title: Parking Hours
2630
+ title: Parking Opening Hours
2631
2631
  nullable: true
2632
2632
  properties:
2633
2633
  valid_from:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@golemio/parkings",
3
- "version": "1.13.6-dev.1452701867",
3
+ "version": "1.13.6-dev.1458851326",
4
4
  "description": "Golemio Parkings Module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",