<div dir="ltr">Thanks Joel.</div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><div><br></div><div>Regards</div><div><br></div><div>Mark Cupitt</div><div><br></div><div><div>"If we change the world, let it bear the mark of our intelligence"</div>

<div><a></a><div><br></div></div><div><a href="http://ph.linkedin.com/in/markcupitt" target="_blank">See me on LinkedIn</a></div><div><img src="http://s.c.lnkd.licdn.com/scds/common/u/img/webpromo/btn_myprofile_160x33.png"></div>

<span style="font-family:arial black,sans-serif"><b><a href="http://gis.stackexchange.com/users/17846/mark-c" target="_blank">See me on StackExchange</a></b></span><br><img src="http://gis.stackexchange.com/users/flair/17846.png"><br>

</div><div>===============================================================================================</div><div>The contents of this email are intended only for the individual(s) to whom it is addressed and may contain</div>

<div>confidential or privileged information.  If you are not the intended recipient, you must not disclose, copy, distribute,</div><div>or use the contents of this email.  If you have received this email in error, please notify the sender immediately and</div>

<div>delete the email and any attachments.<br></div><div>
===============================================================================================
</div></div></div>
<br><br><div class="gmail_quote">On Fri, Feb 21, 2014 at 3:46 AM, Joel Haasnoot <span dir="ltr"><<a href="mailto:joelhaasnoot@gmail.com" target="_blank">joelhaasnoot@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr">Looks like you might need the 'opendata' plugin: <a href="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/OpenData" target="_blank">http://wiki.openstreetmap.org/wiki/JOSM/Plugins/OpenData</a><div>
<br>
</div><div>Joel</div>
</div><div class="gmail_extra"><br clear="all"><div>----------------------------------------------------------<br>Joel Haasnoot</div><div><div class="h5">
<br><br><div class="gmail_quote">On Mon, Feb 17, 2014 at 1:52 AM, Markware Software Services <span dir="ltr"><<a href="mailto:markwaresoftware@gmail.com" target="_blank">markwaresoftware@gmail.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Joel, that is very interesting with JOSM. Am currently using shp2osm and would like to see the differences in the output. <div>


<br></div><div>Just had a look at JOSM and cannot see where to open shape files, can you giveme a hint?</div>

<div><br></div><div>Cheers and Thanks</div><div><br></div><div>Mark</div></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><div><br></div><div>Regards</div><div><br></div><div>Mark Cupitt</div><div><br></div>




<div><div>"If we change the world, let it bear the mark of our intelligence"</div><div><a></a><div><br></div></div><div><a href="http://ph.linkedin.com/in/markcupitt" target="_blank">See me on LinkedIn</a></div>




<div><img src="http://s.c.lnkd.licdn.com/scds/common/u/img/webpromo/btn_myprofile_160x33.png"></div><span style="font-family:arial black,sans-serif"><b><a href="http://gis.stackexchange.com/users/17846/mark-c" target="_blank">See me on StackExchange</a></b></span><br>




<img src="http://gis.stackexchange.com/users/flair/17846.png"><br></div><div>===============================================================================================</div><div>The contents of this email are intended only for the individual(s) to whom it is addressed and may contain</div>




<div>confidential or privileged information.  If you are not the intended recipient, you must not disclose, copy, distribute,</div><div>or use the contents of this email.  If you have received this email in error, please notify the sender immediately and</div>




<div>delete the email and any attachments.<br></div><div>
===============================================================================================
</div></div></div><div><div>
<br><br><div class="gmail_quote">On Fri, Feb 14, 2014 at 10:10 PM, Joel Haasnoot <span dir="ltr"><<a href="mailto:joelhaasnoot@gmail.com" target="_blank">joelhaasnoot@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr">Another way is to use JOSM - it allows you to open Shapefiles and save them as OSM files. No coding or command line needed. Let me know if you need step by step instructions.<div><br></div><div>Joel</div></div>





<div class="gmail_extra"><br clear="all"><div>----------------------------------------------------------<br>Joel Haasnoot</div><div><div>
<br><br><div class="gmail_quote">On Thu, Feb 13, 2014 at 9:32 AM, Rodolphe Quiédeville <span dir="ltr"><<a href="mailto:rodolphe@quiedeville.org" target="_blank">rodolphe@quiedeville.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





Hi,<br>
<br>
What about using shp2osm <a href="http://wiki.openstreetmap.org/wiki/Shp2osm" target="_blank">http://wiki.openstreetmap.org/wiki/Shp2osm</a> to<br>
do this ? As the result will be an .osm file it will be easy to<br>
transform it after to a .pbf file with<br>
<a href="http://wiki.openstreetmap.org/wiki/Osmconvert" target="_blank">http://wiki.openstreetmap.org/wiki/Osmconvert</a> and use it directly with<br>
GraphHopper.<br>
<br>
No programming will be necessary but some shell scripting anyway, I'm<br>
afraid there is no solution out of the box.<br>
<br>
Regards<br>
<div><br>
<br>
<br>
Nicolas Gillet <<a href="mailto:nicolas.gillet@market-ip.com" target="_blank">nicolas.gillet@market-ip.com</a>> writes:<br>
<br>
> The basic idea is to transform shape files into a graphhopper's graph files.<br>
> So you have 2 steps<br>
><br>
> -          Read the source shape files<br>
><br>
> -          Create and write the graph files<br>
> To read shape files in Java there are several libraries like GeoTools<br>
> To create and write the graph, you will have to use GraphHopper's API.<br>
><br>
> If you're not comfortable with Java programing, this can be a hard time though.<br>
><br>
> There are lots of samples showing how to read shape files with geotools, a quick search in google should give you dozens of example.<br>
> For the GraphHopper API the OsmReader class was a perfect sample to work on in order to create my own.<br>
><br>
> Regards,<br>
><br>
> Nicolas GILLET<br>
><br>
><br>
> Market-IP - Creating Mobile Intelligence<br>
> Phone : <a href="tel:%2B32%2081%2033%2011%2011" value="+3281331111" target="_blank">+32 81 33 11 11</a><br>
> Fax : <a href="tel:%2B32%2081%2033%2011%2010" value="+3281331110" target="_blank">+32 81 33 11 10</a><br>
</div>> <a href="http://www.market-ip.com" target="_blank">www.market-ip.com</a><<a href="http://www.market-ip.com/" target="_blank">http://www.market-ip.com/</a>> - <a href="http://www.telefleet.com" target="_blank">www.telefleet.com</a><<a href="http://www.telefleet.com/" target="_blank">http://www.telefleet.com/</a>> - <a href="http://www.geoplanning.net" target="_blank">www.geoplanning.net</a><<a href="http://www.geoplanning.net/" target="_blank">http://www.geoplanning.net/</a>> - <a href="http://www.drivexpert.net" target="_blank">www.drivexpert.net</a><<a href="http://www.drivexpert.net/" target="_blank">http://www.drivexpert.net/</a>><br>






> [Description : cid:image003.png@01CD5521.849F3340]<<a href="http://www.linkedin.com/groups/MarketIP-4289716?gid=4289716&trk=hb_side_g" target="_blank">http://www.linkedin.com/groups/MarketIP-4289716?gid=4289716&trk=hb_side_g</a>><br>






<div>><br>
> De : Muhammad Iqnaul Haq [mailto:<a href="mailto:iqnaulhaq@gmail.com" target="_blank">iqnaulhaq@gmail.com</a>]<br>
> Envoyé : mercredi 12 février 2014 15:25<br>
> À : GraphHopper Java routing engine; Nicolas Gillet<br>
> Objet : Re: [GraphHopper] Using Shapefile as primary data for routing<br>
><br>
> Hi Nicholas<br>
><br>
> 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?<br>
><br>
</div><div>> On Wed, Feb 12, 2014 at 8:38 PM, Nicolas Gillet <<a href="mailto:nicolas.gillet@market-ip.com" target="_blank">nicolas.gillet@market-ip.com</a><mailto:<a href="mailto:nicolas.gillet@market-ip.com" target="_blank">nicolas.gillet@market-ip.com</a>>> wrote:<br>






> Hi,<br>
><br>
> It's totally possible, I did myself.<br>
> You will have to write your own reader for your shape files and create the graph out of the data you read.<br>
> 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.<br>
> Check the existing GraphHopper's OsmReader to have hints on how to create and populate the graph, the rest depends on your data structure.<br>
> Once the graph is created you can use it as any other GH graph.<br>
><br>
> Regards,<br>
><br>
> Nicolas GILLET<br>
><br>
><br>
</div><div>> Market-IP - Creating Mobile Intelligence<br>
</div>> Phone : <a href="tel:%2B32%2081%2033%2011%2011" value="+3281331111" target="_blank">+32 81 33 11 11</a><tel:%2B32%2081%2033%2011%2011><br>
> Fax : <a href="tel:%2B32%2081%2033%2011%2010" value="+3281331110" target="_blank">+32 81 33 11 10</a><tel:%2B32%2081%2033%2011%2010><br>
> <a href="http://www.market-ip.com" target="_blank">www.market-ip.com</a><<a href="http://www.market-ip.com/" target="_blank">http://www.market-ip.com/</a>> - <a href="http://www.telefleet.com" target="_blank">www.telefleet.com</a><<a href="http://www.telefleet.com/" target="_blank">http://www.telefleet.com/</a>> - <a href="http://www.geoplanning.net" target="_blank">www.geoplanning.net</a><<a href="http://www.geoplanning.net/" target="_blank">http://www.geoplanning.net/</a>> - <a href="http://www.drivexpert.net" target="_blank">www.drivexpert.net</a><<a href="http://www.drivexpert.net/" target="_blank">http://www.drivexpert.net/</a>><br>






> [Description : cid:image003.png@01CD5521.849F3340]<<a href="http://www.linkedin.com/groups/MarketIP-4289716?gid=4289716&trk=hb_side_g" target="_blank">http://www.linkedin.com/groups/MarketIP-4289716?gid=4289716&trk=hb_side_g</a>><br>






><br>
> De : Muhammad Iqnaul Haq [mailto:<a href="mailto:iqnaulhaq@gmail.com" target="_blank">iqnaulhaq@gmail.com</a><mailto:<a href="mailto:iqnaulhaq@gmail.com" target="_blank">iqnaulhaq@gmail.com</a>>]<br>
<div>> Envoyé : mercredi 12 février 2014 09:33<br>
</div>> À : <a href="mailto:graphhopper@openstreetmap.org" target="_blank">graphhopper@openstreetmap.org</a><mailto:<a href="mailto:graphhopper@openstreetmap.org" target="_blank">graphhopper@openstreetmap.org</a>><br>





<div>> Objet : [GraphHopper] Using Shapefile as primary data for routing<br>
><br>
> 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.<br>
> 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.<br>
><br>
> 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?<br>






> I want to add restricted access to each road that has a traffic jam on it, can I able to do this using graphhopper?<br>
><br>
> Need all assistance from you guys :)<br>
><br>
> regards<br>
><br>
> _______________________________________________<br>
> GraphHopper mailing list<br>
</div>> <a href="mailto:GraphHopper@openstreetmap.org" target="_blank">GraphHopper@openstreetmap.org</a><mailto:<a href="mailto:GraphHopper@openstreetmap.org" target="_blank">GraphHopper@openstreetmap.org</a>><br>





> <a href="https://lists.openstreetmap.org/listinfo/graphhopper" target="_blank">https://lists.openstreetmap.org/listinfo/graphhopper</a><br>
<span><font color="#888888"><br>
--<br>
Rodolphe Quiédeville<br>
Expert Tsung - Consulting en performance des SI<br>
Tel : 06 13 79 63 41<br>
<a href="http://blog.rodolphe.quiedeville.org" target="_blank">http://blog.rodolphe.quiedeville.org</a><br>
</font></span><div><div><br>
_______________________________________________<br>
GraphHopper mailing list<br>
<a href="mailto:GraphHopper@openstreetmap.org" target="_blank">GraphHopper@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/graphhopper" target="_blank">https://lists.openstreetmap.org/listinfo/graphhopper</a><br>
</div></div></blockquote></div><br></div></div></div>
<br>_______________________________________________<br>
GraphHopper mailing list<br>
<a href="mailto:GraphHopper@openstreetmap.org" target="_blank">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></div></div>
<br>_______________________________________________<br>
GraphHopper mailing list<br>
<a href="mailto:GraphHopper@openstreetmap.org" target="_blank">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></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>