Comments (6)
Would the "second level" catch this?
No. I thought about detecting such assigned variables that are effectively unused, but that's difficult because there's also this remote access from the node context to the way-context ( "add way:townpenalty .." ) and it's hard to cover each edge-case so better keep it simple..
from brouter.
@abrensch
OK, I saw it. And will start with that. But in the next few weeks my time is a bit limited.
from brouter.
OK, I saw it. And will start with that. But in the next few weeks my time is a bit limited.
Sorry, assignig to you was just by accident. I will look into it, but commit via merge request and welcome a review by you. It's easy to introduce subtle bugs. When looking into the code, I already realized there might by a glitch with numerically evaluated tags not leading to marking the tag as "used".
from brouter.
I add a small new logic for global expressions.
Please see my repo profile-compiler
It removes the unused tags from messages list.
from brouter.
I created a merge request for my patch: #573
from brouter.
Would the "second level" catch this?
assign townpenalty
switch estimated_town_class= switch highway=residential 1.5 1.0
switch estimated_town_class=1 1.5
switch estimated_town_class=2 1.8
switch estimated_town_class=3 2.4
switch estimated_town_class=4 2.6
switch estimated_town_class=5 2.8
switch estimated_town_class=6 3.0 1
assign costfactor
multiply switch consider_towns townpenalty 1
...
from brouter.
Related Issues (20)
- Last message in the block of messages references non-existing point in geometry. (Output in geojson format). HOT 1
- Hiking profile ignores `acces=no` HOT 9
- zip file of v1.7.3 realeases
- Some thoughts on rerouting – app only HOT 5
- Trace disappears except when layers menu panel open. Android9 Chrome 121.0.6167.101 HOT 1
- Problem with voicehints on roundabouts HOT 5
- Some thoughts on conditional rules HOT 4
- Tags `sidewalk:right` and `sidewalk:left` not supported HOT 2
- Elevation data seems badly wrong HOT 3
- Exception reading rawTrack HOT 1
- OruxMaps turn instructions no longer working HOT 14
- Question / Proposal: Possible to send turn-by-turn instructions via BLE? [Android] HOT 2
- Download segments CertPathValidatorException HOT 4
- Intermediate nodes on a route break the Data table's Time and Energy values HOT 1
- Car route should not begin/end on a motorway HOT 8
- Add the trigger type to the suspect manager list
- Wrongly reporting restriction:bicycle as bad-tr
- Support for node-tags in lookups.dat HOT 8
- "bicycle:backward=no" is not considered HOT 1
- Generating segments by process_pbf_planet.sh fails HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from brouter.