<div dir="ltr">>This is called geocoding and not provided by GraphHopper. Although we<br>>have some (closed source) prototype we still recommend other existing<div>>solutions.</div><div><br></div><div>Isn't there a way then to somehow manually find which node/edge ID is associated with street name by reading routing data provided from graphopper.sh script? I only need to figure out 5-10 street's names associated with their edge/node ids so that I could manipulate them via hardcoding. I mean, yes, it's that unpractical and basic but that's my goal here :) </div>
<div><br></div><div> >You have several possibilities:</div>> * limit the search to only nodes in this area (this is only possible if<br>>no CH is used)<br>>* import only the subnetwork<br>><br>>Where the last option probably would be the simplest one as there is<br>
>already a (hidden) method for it in OSMReader called isInBounds or just<br>>use OSM tools like osmosis:<br>><a href="http://wiki.openstreetmap.org/wiki/Osmosis#Extracting_bounding_boxes" target="_blank">http://wiki.openstreetmap.org/wiki/Osmosis#Extracting_bounding_boxes</a><br>
><br>>Or do you need to define it per request? What is your usecase?<div><br></div><div>Yes, my usecase would be to define per request: </div><div>-First request calculates the fastest path </div><div>-Point A is moving inside the map (GPS tracking on) </div>
<div>-Timer should recalculate path each 30s or so </div><div><br></div><div>So, basically, importing the subnetwork falls out. </div><div>And as I understand, OSMReader only works once - when the graph is created? This could be a rough solution but I'm pretty sure it would be an overload for such a simple operation.</div>
<div><br></div><div>Thank you, <br><div><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jan 10, 2014 at 10:46 PM, Peter K <span dir="ltr"><<a href="mailto:peathal@yahoo.de" target="_blank">peathal@yahoo.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="im"><br>
> thank you!<br>
><br>
> Also, two more questions:<br>
><br>
> 1) How can I get street node/edge id(s) with LocationIndex by street's<br>
> name? Could you provide a simple example? I was searching for<br>
> something like .getByName but could not find it.<br>
<br>
</div>This is called geocoding and not provided by GraphHopper. Although we<br>
have some (closed source) prototype we still recommend other existing<br>
solutions.<br>
<div class="im"><br>
> 2) Is there a way to run routing algorithms inside a "zone"/subgraph?<br>
> Let's say our map is like showed in zone.png<br>
> We want to get from point A to point B but the algorithms should only<br>
> go through nodes that are inside that blueish rectangle.<br>
> Is there a way to apply such zone by putting some kind of distance<br>
> restriction? Or creating a subgraph?<br>
<br>
</div>You have several possibilities:<br>
* limit the search to only nodes in this area (this is only possible if<br>
no CH is used)<br>
* import only the subnetwork<br>
<br>
Where the last option probably would be the simplest one as there is<br>
already a (hidden) method for it in OSMReader called isInBounds or just<br>
use OSM tools like osmosis:<br>
<a href="http://wiki.openstreetmap.org/wiki/Osmosis#Extracting_bounding_boxes" target="_blank">http://wiki.openstreetmap.org/wiki/Osmosis#Extracting_bounding_boxes</a><br>
<br>
Or do you need to define it per request? What is your usecase?<br>
<br>
Kind Regards,<br>
Peter.<br>
<div class=""><div class="h5"><br>
<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>
</div></div></blockquote></div><br></div></div></div></div>