autoNotDefinedValues.put("tertiary", 35d);//important urban roads
imply? Certainly not an average speed of 35km/h? This also answers my question if we show default speed alarm signs. We do not.
Should we be able to use default values depending on the region? E.g. in Germany default speed outside of cities is 100, while in Switzerland it is 80.
This should matter, right? Not sure, how to distinguish defaults though.
Sebastian
> Should we be able to use default values depending on the region? E.g. in
> Germany default speed outside of cities is 100, while in Switzerland it is
> 80.
> This should matter, right? Not sure, how to distinguish defaults though.
I don't think OSM will provide such information. This could be defined in
a resource of the project.
Such default speed information has been collected already: http://wiki.openstreetmap.org/wiki/OSM_tags_for_routing/Maxspeed. It is a matter of detecting the country and applying that value :-) (and what when we cross countries? Oh oh, tricky).
Have now discovered routing.xml and understand more of the routing logic that we use.
Still, what we could do is not change osmand at all, but have some smartness in osmandMapCreator. It can set a rough speed attribute of a road, so when reading in .osm files, it could set that attribute based on the type: e.g. highway=tertiary in Switzerland could be set to 90 (there is only 70 and 90 it seems). This way, we would get at least *some* speed limit alarm without having to change osmand and adding per-country hacks to it.
I don't think we need to get into the within/outside of cities for now. A whole new can of worms :-)
Sebastian
2012/9/12 Sebastian Spaeth <spa...@gmail.com>
Still, what we could do is not change osmand at all, but have some smartness in osmandMapCreator. It can set a rough speed attribute of a road, so when reading in .osm files, it could set that attribute based on the type: e.g. highway=tertiary in Switzerland could be set to 90 (there is only 70 and 90 it seems). This way, we would get at least *some* speed limit alarm without having to change osmand and adding per-country hacks to it.
I don't think we need to get into the within/outside of cities for now. A whole new can of worms :-)
Sebastian
It's not only the maxspeed that is profile depending. Also the access rules: can you go on a trunk with a bicycle? Does access=destination implies bicycle=yes (it does in Belgium)?
......
But for now, keeping it general and not inlcuding the maxspeeds will be fine I think.
agreed, it complicates things a lot. Still, my original issue was to be able to show speed limit alerts when no explicit maxspeed tag has been set. This would IMHO still be feasible. Or, I'll simply have to set maxspeed= to all roads in this country :).
Sebastian
I'll be labelled as a spoiler but I think we're missing a point here. why are we interested in obeying speed limits ?
to avoid:
1. getting caught by a camera
2. getting a fine
3. loosing points of your licence
4. attracting unwanted attention from law enforcement officials .
In all 4 cases it's the road sign that will matter including the temporary ones put up for road works, special events etc. which won't be in osmand or any other system in the near future.
In other words we should be driving with our eyes on the road and not on a computer screen thinking as a dumb cruise missile following instructions to get from A to B.
Osmand is a navigation tool not a driving one. It will tell us where to go, not how, that is still a human prerogative, for now ;-)
and I'll stop ranting now :-)
David
--
Sent from Android phone, please excuse brevity
DarkyROM 2.3.6
It is due to technical reasons that that certain traffic rules (e.g. speed limit), allthough being valid continuously, are only indicated punctually.
I saw experimemts in France where the current speed limit was color coded into the lines on the road (white = 90, yellow =70, green = 50). It was a nice idea, but apparently, it did not work out.
With electronic navigating devices, we now have another (better) tool at hand to view traffic rules continuously. I would really like to have more signs displayed, but for now, speed limits seem to be the only interesting one significantly mapped.
Until we get road signs radioing their contents to bypassing cars or even something like ETCS 2+ and GSM-R, displaying speed limit from map data seems to me to be the best step that we can take for now to progress into that direction and therefore worth of further development.
David
Yes no one says it is impossible but infrastructural change is quite big. Because we need to read that data continuosly which is a small challenge how to keep application responsiveness and read in the background thread speed limits all the time!I kind of found a solution :) I think it will be much simple if speed limits will be part of rendering or special Layer (like POI/Transport).