<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 28 Mar 2017, at 14:46, Debajyoti Ghosh <<a href="mailto:4u.debajyoti@gmail.com" class="">4u.debajyoti@gmail.com</a>> wrote:</div><div class=""><div dir="ltr" class=""><div class=""><span style="font-size:12.8px" class=""> I need spatial data sets in this format <start node end node distance> for each POIs need <latitude, longitude></span></div></div></div></blockquote><div><br class=""></div><span style="font-family: GillSans;" class="">Both types of data are available in OSM. If the (start node, end node, distance) tuples you want are for individual edges in the graph (rather than distances across long sequences of edges), those will not be asymmetric in OSM data. Then length of a way between two intersections is always identical in both directions. However the vehicle permissions or other characteristics may be different in the two directions. If you require asymmetric networks, you will need to load the OSM data into a system that will e.g. allow vehicles to move only in one direction on one-way streets.</span></div><div class=""><font face="GillSans" class=""><br class=""></font><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class=""><div style="font-size:12.8px" class=""><span style="font-size: 12.8px;" class="">I have to implement my algorithm on real road network data to verify my algorithms- i need 2 things - 1] spatial road network data</span></div></div></div></div></blockquote><div class=""><br class=""></div><div style="font-family: GillSans;" class="">OSM is great for that.</div><div class=""><br class=""></div><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class=""><div style="font-size:12.8px" class=""><span style="font-size: 12.8px;" class=""> 2] API detail where I can implement my algorithm with minimum effort & then run it with 1] - So, now, my requirement is clear to you?</span></div></div></div></div></blockquote><br class=""></div><div class=""><div style="font-family: GillSans;" class="">If you mean API in the sense of programming API (a set of functions and data types exposed to the programmer by a library) rather than web API (some URLs you can hit to call on remote services) then I’d recommend the open-source routing projects I cited in my previous message. You should be able to load your OSM data into them, then write your own algorithms to search on their existing graph data structures. That would save you re-inventing the wheel and writing all the code to load OSM data into a routable graph.</div><div style="font-family: GillSans;" class=""><br class=""></div><div style="font-family: GillSans;" class="">-Andrew</div></div><br class=""></body></html>