Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion database/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,12 @@ SELECT
FROM planet_osm_line p
WHERE p.highway IN ('residential', 'primary', 'secondary', 'tertiary')
AND p.highway != 'living_street'
AND NOT ((p.tags->'maxspeed') IN ('30', 'DE:zone:30'));
AND NOT COALESCE(
((p.tags->'maxspeed') ~ '^\d+$' AND (p.tags->'maxspeed')::integer <= 30)
OR (p.tags->'maxspeed') IN ('DE:zone:30', 'DE:zone:20', 'DE:zone:10')
OR (p.tags->'maxspeed') = 'walk',
false
);
"

# Create spatial index
Expand Down
4 changes: 2 additions & 2 deletions proxy/proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ app.get('/tempo30-wfs', async (req, res) => {
}
});

// Forwarding of planet_osm_roads feature layer
// Forwarding of relevant_roads feature layer (analyzed roads without existing tempo 30)
app.get('/roads-wfs', async (req, res) => {
const layerName = 'planet_osm_roads';
const layerName = 'relevant_roads';
try {
const data = await fetchWfs(layerName);
res.setHeader('Content-Type', OUTPUT_FORMAT);
Expand Down