<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)"><style><!--
/* Font Definitions */
@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;}
/* 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;}
span.E-MailFormatvorlage17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</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=DE link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Hi,<br>integer is still big enough for way ids (which are currently < 270.000.000) and so int should suffice for a very long time. <br>however if you need node ids too, one field is too small.<br><br>regards,<br>Philipp<o:p></o:p></span></p><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"'>Von:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Karl Hübner [mailto:evilhack@gmx.de] <br><b>Gesendet:</b> Donnerstag, 27. März 2014 22:50<br><b>An:</b> Bruno Carle; GraphHopper Java routing engine<br><b>Betreff:</b> Re: [GraphHopper] ExtendedStorage for OSM ids<o:p></o:p></span></p></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'>Hey Bruno, <br>the extended storage is a quite new feature, so I think you have to implement it by yourself. Since osmIds are of type long but the additional fields for edges and nodes are of type int, you have to use additional storages and let the additional fields point at its entries. I think Peter can tell you where you can find helper methods in order to split a long value into two integer values. But you're right, looking at my code in TurnCostStorage should help you. Fell free to ask if you have further questions.<br>Best regards, Karl. <br><br>Bruno Carle <<a href="mailto:brunocarle@yahoo.com">brunocarle@yahoo.com</a>> schrieb:<o:p></o:p></p><div><div><p class=MsoNormal style='background:white'><span style='font-size:8.0pt;font-family:"Courier New";color:black'>Hi everybody,<o:p></o:p></span></p></div><div><p class=MsoNormal style='background:white'><span style='font-size:8.0pt;font-family:"Courier New";color:black'>I would like to retrieve the osmIds from edges and/or nodes in order to be able to blacklist some paths. <o:p></o:p></span></p></div><div><p class=MsoNormal style='background:white'><span style='font-size:8.0pt;font-family:"Courier New";color:black'>The blacklist will change often, so I can not put it inside a FlagEncoder as I would have to reimport every time.<o:p></o:p></span></p></div><div><p class=MsoNormal style='background:white'><span style='font-size:8.0pt;font-family:"Courier New";color:black'>I think another way is using an ExtendedStorage that would store the OSM ids. Please does anyone have one running?<o:p></o:p></span></p></div><div><p class=MsoNormal style='background:white'><span style='font-size:8.0pt;font-family:"Courier New";color:black'>If not I will try to implement it, probably copying the ideas from the TurnCostStorage in khuebner/graphhopper.<o:p></o:p></span></p></div><div><p class=MsoNormal style='background:white'><span style='font-size:8.0pt;font-family:"Courier New";color:black'>Thanks<o:p></o:p></span></p></div><div><p class=MsoNormal style='background:white'><span style='font-size:8.0pt;font-family:"Courier New";color:black'>Bruno<o:p></o:p></span></p></div></div></div></body></html>