DO you mean a new osm tag? Doesn't the existing tags you mention cover surface 
quality?

Med venlig hilsen

Emil Tin
IT- og Processpecialist
Trafik
_______________________________
KØBENHAVNS KOMMUNE
Teknik- og Miljøforvaltningen
Byens Anvendelse

Njalsgade 13 Vær. 118
Postboks 380
2300 København S

Direkte 2369 5986
Mobil 2369 5986
Email z...@tmf.kk.dk
EAN 5798009493149
-----Oprindelig meddelelse-----
Fra: Fernando Trebien [mailto:fernando.treb...@gmail.com] 
Sendt: 28. februar 2014 17:35
Til: Emil Tin
Cc: osrm-talk
Emne: Re: [OSRM-talk] Beginner question: default car profile and 
tracktype/smoothness/surface

Thank you Emil and Hans. I didn't know about the biking profile. Even though 
I'm a cyclist as well, I've been using the website mostly for car routing, and 
that's what OSRM is most known for here in Brazil.

A while ago, I participated in a debate about making OSM-Carto use a different 
visual style to display roads in "worse than usually expected" state. As the 
debate developed, I made up a surface classification system that captures 
similarities among tags that represent "transit effort" (tracktype, smoothness, 
mtb:scale, sac_scale, wheelchair, 4wd_only, and surface) for various modes of 
transportation. I wonder if you'd be interested in something along this line, 
then I would go ahead and propose an official tag for it.

On Fri, Feb 28, 2014 at 5:26 AM, Emil Tin <z...@tmf.kk.dk> wrote:
>
>
> Surface is already taken into account for bicycles in the OSRM main repo:
>
> https://github.com/DennisOSRM/Project-OSRM/blob/master/profiles/bicycl
> e.lua
>
> However, instead of multiplying, I found it more realistic to simply use the 
> surface speed, instead of multiplying:
>
> surface_speeds = {
>         ["asphalt"] = default_speed,
>         ["cobblestone:flattened"] = 10,
>         ["paving_stones"] = 10,
>         ["compacted"] = 10,
>         ["cobblestone"] = 6,
>         ["unpaved"] = 6,
>         ["fine_gravel"] = 6,
>         ["gravel"] = 6,
>         ["fine_gravel"] = 6,
>         ["pebbelstone"] = 6,
>         ["ground"] = 6,
>         ["dirt"] = 6,
>         ["earth"] = 6,
>         ["grass"] = 6,
>         ["mud"] = 3,
>         ["sand"] = 3
> }
>
>
>     -- surfaces
>     if surface then
>         surface_speed = surface_speeds[surface]
>         if surface_speed then
>             if way.speed > 0 then
>                 way.speed = surface_speed
>             end
>             if way.backward_speed > 0 then
>               way.backward_speed  = surface_speed
>             end
>         end
>     end
>
> Both approaches might have merit.
>
>
>
> Kind regards,
>
> Emil Tin
> IT- and Process Specialist
> Traffic Design
> ________________________________
> CITY OF COPENHAGEN
> The Technical and Environmental Administration Traffic Department
>
> Islands Brygge 37 Vær. 118
> Postboks 450
> 2300 København S
>
> Telefon +45 2369 5986
> Email z...@tmf.kk.dk
> EAN 5798009493149
>
>
> -----Oprindelig meddelelse-----
> Fra: Hans Gregers Petersen [mailto:greg...@septima.dk]
> Sendt: 28. februar 2014 09:16
> Til: osrm-talk@openstreetmap.org
> Emne: Re: [OSRM-talk] Beginner question: default car profile and 
> tracktype/smoothness/surface
>
> Hi Fernando,
>
>> I've always wondered if there are any plans taking surface 
>> type/quality into account in the default profiles. I live in a 
>> developing country (Brazil) with poorly maintained roads and these 
>> conditions make a big difference at the beginning and at the end of 
>> many routes if ignored.
>
> I do not know about the plans regarding the default profile, but I 
> successfully used a simple "factor approach" to surfaces when doing our 
> routing on bicycle paths here in Denmark.
> For instance setting the following in the LUA profile:
>
> -- How much does speed depreciate by surface surface_factors = { 
> ["unpaved"] = 0.8, ["gravel"] = 0.8, ["cobblestone"] = 0.8, ["dirt"] = 
> 0.8, ["earth"] = 0.8, ["sand"] = 0.8, ["cobblestone:flattened"] = 0.9, 
> ["compacted"] = 0.9, ["fine_gravel"] = 0.9, ["wood"] = 0.9 }
>
> and then later adjuste the speed accordingly:
>
> -- Surface tag
> local surfacetag = way.tags:Find("surface")
>
> -- Surface factor
> if surface_factors[surfacetag] then
> way.speed = way.speed * surface_factors[surfacetag] way.backward_speed 
> = way.backward_speed * surface_factors[surfacetag] end
>
>
>
> Best regards,
>
> Greg
>
>
>
> Hans Gregers Petersen
> Partner, Senior Consultant
> www.septima.dk
>
> _______________________________________________
> OSRM-talk mailing list
> OSRM-talk@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/osrm-talk
>
> _______________________________________________
> OSRM-talk mailing list
> OSRM-talk@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/osrm-talk



--
Fernando Trebien
+55 (51) 9962-5409

"The speed of computer chips doubles every 18 months." (Moore's law)
"The speed of software halves every 18 months." (Gates' law)

_______________________________________________
OSRM-talk mailing list
OSRM-talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/osrm-talk

Reply via email to