<div dir="ltr">Hi Nicholas<div><br></div><div>I'm afraid I still not get it because my background is not computer science, do you have a refered link like tutorial or example to do this?</div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Wed, Feb 12, 2014 at 8:38 PM, Nicolas Gillet <span dir="ltr"><<a href="mailto:nicolas.gillet@market-ip.com" target="_blank">nicolas.gillet@market-ip.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">






<div lang="FR-BE" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Hi,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">It’s totally possible, I did myself.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">You will have to write your own reader for your shape files and create the graph out of the data you read.<u></u><u></u></span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">If you’re working with shape files in Java, you might already know the GeoTools library. It’s a good start to read shape files.<u></u><u></u></span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Check the existing GraphHopper’s OsmReader to have hints on how to create and populate the graph, the rest depends on your data structure.<u></u><u></u></span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Once the graph is created you can use it as any other GH graph.<u></u><u></u></span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Regards,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Nicolas GILLET<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></b></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Market-IP –</span></b><i><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">
</span></i><i><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#404040">Creating Mobile Intelligence</span></i><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Phone : <a href="tel:%2B32%2081%2033%2011%2011" value="+3281331111" target="_blank">+32 81 33 11 11</a>
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Fax : <a href="tel:%2B32%2081%2033%2011%2010" value="+3281331110" target="_blank">+32 81 33 11 10</a><u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><a href="http://www.market-ip.com/" target="_blank"><span style="color:blue">www.market-ip.com</span></a> –
<a href="http://www.telefleet.com/" target="_blank"><span style="color:blue">www.telefleet.com</span></a> –
<a href="http://www.geoplanning.net/" target="_blank"><span style="color:blue">www.geoplanning.net</span></a> –
<a href="http://www.drivexpert.net/" target="_blank"><span style="color:blue">www.drivexpert.net</span></a>
<u></u><u></u></span></p>
<p class="MsoNormal"><a href="http://www.linkedin.com/groups/MarketIP-4289716?gid=4289716&trk=hb_side_g" target="_blank"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d;text-decoration:none"><img border="0" width="30" height="25" src="cid:image001.png@01CF27FF.BAA89D70" alt="Description : cid:image003.png@01CD5521.849F3340"></span></a><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span lang="FR" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">De :</span></b><span lang="FR" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Muhammad Iqnaul Haq [mailto:<a href="mailto:iqnaulhaq@gmail.com" target="_blank">iqnaulhaq@gmail.com</a>]
<br>
<b>Envoyé :</b> mercredi 12 février 2014 09:33<br>
<b>À :</b> <a href="mailto:graphhopper@openstreetmap.org" target="_blank">graphhopper@openstreetmap.org</a><br>
<b>Objet :</b> [GraphHopper] Using Shapefile as primary data for routing<u></u><u></u></span></p><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">Hi all! I'm a new user of graphhopper. I'm working on my final academic research right now, the aim of the research is knowing how to make a route to avoid traffic-jam.<u></u><u></u></p>
<div>
<p class="MsoNormal">At first I'm working with pgrouting, geoserver, and openlayers but I got stucked because my route did not showed up. I found the graphhopper and interested on it.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">But I've a problem, I want to use my own data (it is in shapefile .shp) format. Because in Indonesia the road network data from openstreetmap is not completed yet I thought. How can I use the data so that it can be used to graphhopper?<u></u><u></u></p>

</div>
<div>
<p class="MsoNormal">I want to add restricted access to each road that has a traffic jam on it, can I able to do this using graphhopper?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Need all assistance from you guys :)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">regards<u></u><u></u></p>
</div>
</div>
</div></div></div>
</div>

<br>_______________________________________________<br>
GraphHopper mailing list<br>
<a href="mailto:GraphHopper@openstreetmap.org">GraphHopper@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/graphhopper" target="_blank">https://lists.openstreetmap.org/listinfo/graphhopper</a><br>
<br></blockquote></div><br></div>