<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">You'll have to feed all the osm tags
you need while import to some data structure, this is currently
not implemented in GraphHopper but could be achieved with
DataAccess objects or external DBs like MapDB<br>
<br>
Peter<br>
<br>
On 09.07.2015 14:28, Fred Laurent wrote:<br>
</div>
<blockquote
cite="mid:CAHCHuSOLBP5PUnPtjhjw1tJp4W1N-OgE5o2i4tR3QjmL1Adjng@mail.gmail.com"
type="cite">
<div dir="ltr">Can you explain me how get tags of way eg:
name,highway.. using OSMWay?<br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2015-07-09 14:23 GMT+02:00 Vadim
Chelyshov <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:qtankle@gmail.com" target="_blank">qtankle@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"> No, it's absolutely
incorrect.<span class=""><br>
<br>
OSMWay osm = new OSMWay(wayID);<br>
System.out.printl("name of way = "+osm.getTag("name"));<br>
<br>
</span> What you expect there? You just create new object
and it is empty.
<div>
<div class="h5"><br>
<br>
<br>
<div>On 09.07.2015 15:03, Fred Laurent wrote:<br>
</div>
</div>
</div>
<blockquote type="cite">
<div>
<div class="h5">
<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><font color="#888888">Laurent<br>
</font></span></div>
</blockquote>
</div>
<br>
</div>
<br>
</div>
</div>
</blockquote>
</div>
</blockquote>
</div>
</div>
</blockquote>
<br>
</body>
</html>