<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Markeringsbobletekst Tegn";
margin:0cm;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0cm;
margin-right:0cm;
margin-bottom:0cm;
margin-left:36.0pt;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
span.EmailStyle17
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.MarkeringsbobletekstTegn
{mso-style-name:"Markeringsbobletekst Tegn";
mso-style-priority:99;
mso-style-link:Markeringsbobletekst;
font-family:"Tahoma","sans-serif";}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:3.0cm 2.0cm 3.0cm 2.0cm;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:1124545559;
mso-list-type:hybrid;
mso-list-template-ids:266369834 67502081 67502083 67502085 67502081 67502083 67502085 67502081 67502083 67502085;}
@list l0:level1
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Symbol;}
ol
{margin-bottom:0cm;}
ul
{margin-bottom:0cm;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="2050" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=DA link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>You cannot change route type at run time. But if you want you can run several instances of osrm-routed in parallel, each computing a different type of route. Of course this requires more resource and time for preprocessing data.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>To compute a different type of route, like preferring motorways you basically need to:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if !supportLists]><span lang=EN-US style='font-size:11.0pt;font-family:Symbol;color:#1F497D'><span style='mso-list:Ignore'>·<span style='font:7.0pt "Times New Roman"'> </span></span></span><![endif]><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Modify car.lua to prefer motorway, or otherwise change the way types are handled according to your needs<o:p></o:p></span></p><p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if !supportLists]><span lang=EN-US style='font-size:11.0pt;font-family:Symbol;color:#1F497D'><span style='mso-list:Ignore'>·<span style='font:7.0pt "Times New Roman"'> </span></span></span><![endif]><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Preprocess OSM data using your custom car.lua profile<o:p></o:p></span></p><p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if !supportLists]><span lang=EN-US style='font-size:11.0pt;font-family:Symbol;color:#1F497D'><span style='mso-list:Ignore'>·<span style='font:7.0pt "Times New Roman"'> </span></span></span><![endif]><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Run osrm-routed to handle requests, passing in your preprocessed data<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I agree a good wiki page on how to write lua profiles is missing.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div><div><p class=MsoNormal style='line-height:11.0pt'><span style='font-size:8.0pt;font-family:"Verdana","sans-serif";color:black'>Med venlig hilsen<br><br><b>Emil Tin</b><br>IT- og Processpecialist<br>Trafik<br>_______________________________<br>KØBENHAVNS KOMMUNE <br>Teknik- og Miljøforvaltningen <br>Byens Anvendelse <o:p></o:p></span></p></div><div><p class=MsoNormal style='line-height:6.0pt'><span style='font-size:6.0pt;font-family:"Verdana","sans-serif";color:black'><o:p> </o:p></span></p></div><div><p class=MsoNormal style='line-height:11.0pt'><span style='font-size:8.0pt;font-family:"Verdana","sans-serif";color:black'>Njalsgade 13 Vær. 118 <br>Postboks 380 <br>2300 København S <o:p></o:p></span></p></div><div><p class=MsoNormal style='line-height:6.0pt'><span style='font-size:6.0pt;font-family:"Verdana","sans-serif";color:black'><o:p> </o:p></span></p></div><div><table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0><tr><td nowrap style='padding:0cm 6.0pt 1.5pt 0cm'><p class=MsoNormal><span style='font-size:8.0pt;font-family:"Verdana","sans-serif";color:black'>Direkte<o:p></o:p></span></p></td><td nowrap style='padding:0cm 0cm 1.5pt 0cm'><p class=MsoNormal><span style='font-size:8.0pt;font-family:"Verdana","sans-serif";color:black'>2369 5986<o:p></o:p></span></p></td></tr><tr><td nowrap style='padding:0cm 6.0pt 1.5pt 0cm'><p class=MsoNormal><span style='font-size:8.0pt;font-family:"Verdana","sans-serif";color:black'>Mobil<o:p></o:p></span></p></td><td nowrap style='padding:0cm 0cm 1.5pt 0cm'><p class=MsoNormal><span style='font-size:8.0pt;font-family:"Verdana","sans-serif";color:black'>2369 5986<o:p></o:p></span></p></td></tr><tr><td nowrap style='padding:0cm 6.0pt 1.5pt 0cm'><p class=MsoNormal><span style='font-size:8.0pt;font-family:"Verdana","sans-serif";color:black'>Email<o:p></o:p></span></p></td><td nowrap style='padding:0cm 0cm 1.5pt 0cm'><p class=MsoNormal><span style='font-size:8.0pt;font-family:"Verdana","sans-serif";color:black'><a href="mailto:zf0f@tmf.kk.dk"><span style='color:black'>zf0f@tmf.kk.dk</span></a><o:p></o:p></span></p></td></tr><tr><td nowrap style='padding:0cm 6.0pt 1.5pt 0cm'><p class=MsoNormal><span style='font-size:8.0pt;font-family:"Verdana","sans-serif";color:black'>EAN<o:p></o:p></span></p></td><td nowrap style='padding:0cm 0cm 1.5pt 0cm'><p class=MsoNormal><span style='font-size:8.0pt;font-family:"Verdana","sans-serif";color:black'>5798009493149<o:p></o:p></span></p></td></tr></table></div><div><p class=MsoNormal><span style='font-size:8.0pt;font-family:"Verdana","sans-serif";color:black'><o:p> </o:p></span></p><div><p class=MsoNormal><a href="http://www.sharingcopenhagen.dk/"><span style='font-size:8.0pt;font-family:"Verdana","sans-serif";color:blue;text-decoration:none'><img border=0 width=190 height=46 id="_x0000_i1025" src="cid:image001.gif@01CF6E92.762090C0"></span></a><span style='font-size:8.0pt;font-family:"Verdana","sans-serif";color:black'><o:p></o:p></span></p></div></div></div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>Fra:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> John Aherne [mailto:jjaherne@gmail.com] <br><b>Sendt:</b> 13. maj 2014 09:57<br><b>Til:</b> osrm-talk<br><b>Emne:</b> [OSRM-talk] Preferring motorways for a route<o:p></o:p></span></p></div><p class=MsoNormal><o:p> </o:p></p><div><div><div><div><div><div><div><p class=MsoNormal style='margin-bottom:12.0pt'>Once again thanks for a really useful project.<br><br>I have been going through the archives to see if this subject has come up before.<br><br>I must admit I expected to see more questions about this.<o:p></o:p></p></div><p class=MsoNormal>But I have only found 1 oblique reference to being able to force a route to use motorways for a journey when it is possible. And I must admit I did not understand what it was referring to.<br><br>It seemed to imply that a simple tag passed in to a request would do the trick.<o:p></o:p></p></div><p class=MsoNormal><o:p> </o:p></p></div><p class=MsoNormal style='margin-bottom:12.0pt'>Now I think I must somehow change the car profile to make this happen. But I do not see much information on where I should start and whether this has been done before and I just have not been able to find it.<o:p></o:p></p></div><p class=MsoNormal style='margin-bottom:12.0pt'>Any help would be most appreciated.<o:p></o:p></p></div><p class=MsoNormal style='margin-bottom:12.0pt'>Thanks<o:p></o:p></p></div><p class=MsoNormal style='margin-bottom:12.0pt'>John Aherne<o:p></o:p></p><div><div><div><p class=MsoNormal style='margin-bottom:12.0pt'><o:p> </o:p></p></div></div></div></div></div></body></html>