-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsources_example.json
28 lines (28 loc) · 1.15 KB
/
sources_example.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{
"pedestrian": {
"sidewalks": [
"SELECT 'Feature' AS type,",
" ST_AsGeoJSON(ST_Transform(geom, 4326), 7)::json geometry,",
" json_build_object('grade', grade) properties",
" FROM sidewalks"],
"crossings": [
"SELECT 'Feature' AS type,",
" ST_AsGeoJSON(ST_Transform(geom, 4326), 7)::json geometry,",
" json_build_object('grade', grade,",
" 'curbramps', curbramps) properties",
" FROM crossings"]
},
"live": {
"construction": [
"SELECT 'Feature' AS type,",
" ST_AsGeoJSON(ST_Transform(geom, 4326), 7)::json geometry,",
" json_build_object('address', address,",
" 'permit_number', permit_number,",
" 'start_date', to_char(start_date, 'YYYY-MM-DD'),",
" 'end_date', to_char(end_date, 'YYYY-MM-DD'),",
" 'closed', closed) properties",
" FROM construction",
" WHERE start_date <= current_timestamp",
" AND end_date >= current_timestamp"]
}
}