Re: [OSRM-talk] Multiple profiles

2014-07-09 Thread Martin Koppenhoefer


> Am 09/lug/2014 um 21:03 schrieb Frederik Ramm :
> 
> Note that there are a number of countries where cycling on motorways is
> allowed and sometimes even recommended:
> 
> http://cycleseven.org/cycling-on-the-motorway


are those still "motorways"? By common definition (and UN convention on road 
traffic), slow traffic is excluded from motorways (e.g. bicycles, tractors, 
mopeds)

cheers,
Martin
___
OSRM-talk mailing list
OSRM-talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/osrm-talk


Re: [OSRM-talk] Foot profile

2014-05-03 Thread Martin Koppenhoefer


> Am 03/mag/2014 um 15:00 schrieb Sarah Hoffmann :
> 
> you can exclude all ways with area=yes from routing. Simply add something
> like this in way_function() of your profile: 
> 
> if way.tags:Find('area') ~= '' then
>return 0
> end
> 
> But this might do more harm than good.


+1, I wouldn't exclude pedestrian areas from routing. They should of course be 
connected, many situations would become islands if routing on areas is off. 

One issue that currently is yet to solve afaik are pedestrian areas defined by 
multipolygons, their ways should also be integrated into the graph

cheers,
Martin
___
OSRM-talk mailing list
OSRM-talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/osrm-talk


Re: [OSRM-talk] mix kilometers and speed

2014-04-07 Thread Martin Koppenhoefer


> Am 07/apr/2014 um 13:44 schrieb Florian Lohoff :
> 
> But
> driving on the motorway you'll consume the same amount of fuel
> than having a 6 cylinder 3,5l engine. So its not fuel per time
> but fuel per km and road type.



and like this the calculation does not account for car costs like value loss, 
tires, friction, ... and neither for environmental impact (CO2 etc)

cheers 
Martin
___
OSRM-talk mailing list
OSRM-talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/osrm-talk


Re: [OSRM-talk] Huge difference in needed time computation OSRM / Google Maps

2014-03-25 Thread Martin Koppenhoefer
2014-03-24 20:01 GMT+01:00 Philip Barnes :

> It may be possible, but one difficulty is the router would have to work
> out whether the road is rural or urban which I imagine is not easy,
>


it is actually impossible, at most you could make a good guess, but you
can't automatically detect whether you are in or out of town, as this is
(at least in many countries) regulated by signs and not (directly) by
buildings or residents.

cheers,
Martin
___
OSRM-talk mailing list
OSRM-talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/osrm-talk


[OSRM-talk] crossing the dateline

2014-03-18 Thread Martin Koppenhoefer
I noticed that OSRM (or maybe this is only a frontend problem) is not aware
of the lon-restrictions. Basically if you zoom out and drag the marker you
get coords like this: 40.446947, 269.296875
when you try to route from one america to the other (e.g. in zoom 2 or 3),
and no route is found. I believe it would be quite simple to solve this
(long=long-180*math-floor(long/180)) or similar.

cheers,
Martin
___
OSRM-talk mailing list
OSRM-talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/osrm-talk


Re: [OSRM-talk] Beginner question: default car profile and tracktype/smoothness/surface

2014-03-17 Thread Martin Koppenhoefer
2014-03-17 16:49 GMT+01:00 Michal Palenik :

> which opens the question of country/region wide default values for eg
> maxspeed, ...
>


There is docu about this in the wiki, but the general stance on this is
that there is no such thing as a "default" in osm: if a value if missing it
might be the default, but it might just as well be missing information. In
Italy (and elsewhere) we are using maxspeed=* for the speed limit, also if
not signposted but implicit, and then add an additional tag source:maxspeed
to keep track whether this is explicit or implicit:
https://wiki.openstreetmap.org/wiki/Key:source:maxspeed
(explicit limits get a "sign" value).

cheers,
Martin
___
OSRM-talk mailing list
OSRM-talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/osrm-talk


Re: [OSRM-talk] Beginner question: default car profile and tracktype/smoothness/surface

2014-03-17 Thread Martin Koppenhoefer
2014-03-17 1:13 GMT+01:00 Fernando Trebien :

> tracktype_profile = {
>   ["grade1"] = math.huge,
>   ["grade2"] = 45,
>   ["grade3"] = 30,
>   ["grade4"] = 20,
>   ["grade5"] = 15,
>   ["grade6"] = 9,
>   ["grade7"] = 6,
>   ["grade8"] = 3
> }
>



This might be OT here, but I think you shouldn't use (i.e. "map") grade6 to
8 in OSM, as they are not defined. tracktype=grade5 is already the worst
tracktype (what in your scheme seems to be grade8), so anything above
doesn't make sense logically. See also actual usage numbers:
http://taginfo.openstreetmap.org/keys/tracktype#values

cheers,
Martin
___
OSRM-talk mailing list
OSRM-talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/osrm-talk


Re: [OSRM-talk] "Time-to-destination" on OSRM is too short

2014-02-10 Thread Martin Koppenhoefer
2014-02-10 14:16 GMT+01:00 Richard Fairhurst :

> The correct solution is to add maxspeed tags, traffic lights etc.
>


+1, especially maxspeed is esential for travel times if there are explicit
limits for bigger parts of your journey.

Generally it seems that different ideas in different areas of the world, of
what a "trunk" road is supposed to be, now fall onto our feet ;-)
One option that comes to my mind would be that you change the road
classification in Britain to use trunk only on those ways where it is used
in other parts of the world, regardless of the actual official british
classification. Could this find support in the British community? I guess
that as a consequence you would probably have to change some trunk roads to
primary roads, while much of the network would still remain like it is now.

In Italy and Germany for example we use trunk for certain roads similar to
motorways (i.e. usually no traffic lights, dual carriageways, no grade
level intersections = slip ramps, but legally not a motorway).
Motorway-like access restrictions are then added with an additional tag
(motorroad=yes), so they are not compulsory in order to be a trunk road.

cheers,
Martin
___
OSRM-talk mailing list
OSRM-talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/osrm-talk


Re: [OSRM-talk] highway=track

2013-06-06 Thread Martin Koppenhoefer




On 06/giu/2013, at 15:07, Philip Barnes  wrote:

> I am not sure that allowing routing along highway=track is a good idea.
> Fine on foot, but a really bad idea otherwise. Tracks are not suitable
> for normal road vehicles.


as Track isn't a physical classification it really depends on the track whether 
it is suitable or not. Use tracktype and surface for other information. A 
grade1 track for instance is paved.

Cheers,
Martin
___
OSRM-talk mailing list
OSRM-talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/osrm-talk


Re: [OSRM-talk] BUG?

2013-05-21 Thread Martin Koppenhoefer
2013/5/21 Hans Gregers Petersen 

> I cannot see anything weird at the link you've posted, and I am
> guessing that it might be hard for some of the others on the list too.
>



IIRR yesterday night that link looked different. Erick, you have to keep in
mind that the routing is not in every case performed on the map data you
see in the rendering, because the routing database might have a different
update frequency than the rendering database (it is 2 distinct databases,
both derived from the same "master" osm database).

cheers,
Martin
___
OSRM-talk mailing list
OSRM-talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/osrm-talk


Re: [OSRM-talk] road double continuous line

2013-04-17 Thread Martin Koppenhoefer
2013/4/17 Philip Barnes 

>
> As a matter of interest, in Countries where it is illegal to turn across
> a solid line, for there to be a junction without a break in the line?
>
>

usually at junctions there are no solid lines, at the most there will be
interrupted lines or no lines at all (or when there are solid lines it
would indeed be forbidden to turn at the junction).



> I have driven in a lot of European countries and have noticed that there
> are gaps in solid lines for every driveway. I have never come across a
> situation where a turn is prevented by a line.
>


there are lots of these situations, but there are also lots of
interruptions for driveways, gasstations etc., yes.

Example crossing out of town where you can't turn:
http://maps.google.de/maps?hl=de&ll=41.349801,13.75293&spn=0.013482,0.027788&t=m&z=16&layer=c&cbll=41.349827,13.753092&panoid=0dBb2Nn9tjfBufqt37g6xw&cbp=12,94.59,,0,23.63




> This proposal would also need routers to understand the law in different
> countries.




yes, at least if you wanted to handle also the stranger cases like the UK
which allows turning on single solid lines. In Germany for instance I am
not aware of any difference between a single and a double solid line (I
think usually you get double lines close to situations where one of the
double lines gets dashed, hence allowing crossing the double line only when
coming from this side).

cheers,
Martin
___
OSRM-talk mailing list
OSRM-talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/osrm-talk


Re: [OSRM-talk] road double continuous line

2013-04-17 Thread Martin Koppenhoefer
to do it well we should find something compatible with
http://wiki.openstreetmap.org/wiki/Lanes

cheers,
Martin
___
OSRM-talk mailing list
OSRM-talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/osrm-talk


Re: [OSRM-talk] road double continuous line

2013-04-17 Thread Martin Koppenhoefer
2013/4/17 Emil Tin 

>  ** **
>
> Divider=* was jsut a proposal, but it’s abandoned, and tag is not widely
> used. 
>
>


yes, just a proposal. This "abandoned" status has nothing much to say,
there was a wiki fiddler who set all proposals to abandoned which weren't
voted on some time after the proposal was last modified.

IMHO for how stuff is done in OSM it doesn't really matter whether there is
a proposal or an "approved" tag, what matters is whether the tag is in use.
Setting a proposal to abandoned should be reserved to the mapper who wrote
the proposal (i.e. he made up his mind and discovered that the proposal
doesn't work, and it isn't used by others the same time), as long as he is
active. It doesn't really make sense to discourage usage of a tag simply
for formal reasons (it wasn't voted upon in a certain period of time), in
fact I have set some proposals to active which are widely used which the
same wiki fiddler had set to abandoned.

Now you are right, the divider tag isn't widely used, but I think this is
kind of a hen / egg problem. As long as no routing engine processes this
tag, people aren't interested in using it (it also isn't rendered, which is
the main incentive for many mappers to use a tag). AFAIK there is no
alternative proposal to map the divider, so for me if I want to map a
divider this is the tag to do so.

cheers,
Martin
___
OSRM-talk mailing list
OSRM-talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/osrm-talk


Re: [OSRM-talk] road double continuous line

2013-04-17 Thread Martin Koppenhoefer
2013/4/17 Marat 

> Hi!
>
> I'm not sure if this is common rule around the world, but I think that in
> most countries it is restricted to make a turn crossing double continuous
> line.
>
> Is there a way to to tag highways so that OSRM would not make routing
> crossing this line?
> It is frustrating to make restriction to turn left on each junction of
> such road.
> Especially there are no special signs, and double line is the only
> restriction.
>


Yes, I guess mostly a double line may not be crossed, in many countries
also a single continuous line has the same meaning. I am not aware of any
application evaluating this attribute, but there is a tag to map it:
divider.

More information here:
http://wiki.openstreetmap.org/wiki/Proposed_features/Divider

cheers,
Martin
___
OSRM-talk mailing list
OSRM-talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/osrm-talk