<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
If you wanna catch osmWays look how <a
href="https://github.com/dos65/graphhopper/blob/master/core/src/main/java/com/graphhopper/reader/OSMReader.java#L173">OSMReader</a>
do it.<br>
<br>
<div class="moz-cite-prefix">On 09.07.2015 15:23, Vadim Chelyshov
wrote:<br>
</div>
<blockquote cite="mid:559E67C8.4010506@gmail.com" type="cite">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
No, it's absolutely incorrect.<br>
<br>
OSMWay osm = new OSMWay(wayID);<br>
System.out.printl("name of way = "+osm.getTag("name"));<br>
<br>
What you expect there? You just create new object and it is empty.<br>
<br>
<br>
<div class="moz-cite-prefix">On 09.07.2015 15:03, Fred Laurent
wrote:<br>
</div>
<blockquote
cite="mid:CAHCHuSOz1bS6B7hf0rhVn0VzfZ1FWHNeqZy7hMfLGJtUxP_xng@mail.gmail.com"
type="cite">
<div dir="ltr">Is it the correct code ? using OSMWay?<br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2015-07-09 11:09 GMT+02:00 Fred
Laurent <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:fredlaurent31@gmail.com" target="_blank">fredlaurent31@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div>
<div>
<div>hello , I have a problem .. <br>
</div>
My code :<br>
GraphHopper tmpHopp = new GraphHopper().forMobile();<br>
tmpHopp.load(new File(mapsFolder,
currentArea).getAbsolutePath());
<br>
GraphStorage Sgrpah =
tmpHopp.getGraph();<br>
LocationIndex locationIndex =
tmpHopp.getLocationIndex();<br>
AllEdgesIterator edges =
Sgrpah.getAllEdges();<br>
ArrayList<Integer> id = new
ArrayList<Integer>();<br>
while(edges.next())<br>
id.add(edges.getEdge());<br>
<br>
EdgeIteratorState edge
=locationIndex.findClosest(-18.8918640,47.5355036,
EdgeFilter.ALL_EDGES).getClosestEdge();<br>
tailleEdge =
locationIndex.findClosest(-18.8918640,47.5355036,
EdgeFilter.ALL_EDGES).getQueryDistance();<br>
<br>
IDEdge = edge.getEdge();<br>
<br>
OSMReader osmR = new OSMReader(Sgrpah);<br>
long wayID =
osmR.getOsmIdOfInternalEdge(IDEdge);<br>
<br>
OSMWay osm = new OSMWay(wayID);<br>
System.out.printl("name of way =
"+osm.getTag("name"));<br>
<br>
I run My app : I have name of way = NULL <br>
Why I have NULL but in OSM this not null ? <br>
</div>
Thank you <br>
</div>
<span class="HOEnZb"><font color="#888888">Laurent<br>
</font></span></div>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
GraphHopper mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:GraphHopper@openstreetmap.org">GraphHopper@openstreetmap.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://lists.openstreetmap.org/listinfo/graphhopper">https://lists.openstreetmap.org/listinfo/graphhopper</a>
</pre>
</blockquote>
<br>
</blockquote>
<br>
</body>
</html>