Hi Mario,<div><br></div><div>In my opinion I would drop functions like the one you mentioned and reduce the number of wrappers as much as possible.</div><div><br></div><div>I think a good and useful wrapper function is one, that selects a BBOX containing start and end point and returns records with geometries.</div>

<div>Then everyone can modify it as needed. I don't think we should simplify those basic wrappers and make assumptions like naming the cost column "length" or so.</div><div><br></div><div>What do you think?</div>

<div><br></div><div>Daniel</div><div><br></div><div><br></div><div><br><br><div class="gmail_quote">On Mon, Jul 2, 2012 at 9:02 AM, Mario Basa <span dir="ltr"><<a href="mailto:mario.basa@gmail.com" target="_blank">mario.basa@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
The core wrapper functions have<br>
<br>
dijkstra_sp_delta_directed<br>
astar_sp_delta_directed<br>
<br>
with "length" hard coded as cost for some reason.<br>
<br>
While astar_sp_delta_cc has a cost column parameter, but all it does<br>
is call astar_sp_delta_cc_directed  with<br>
reverse_cost=false,directed=false.<br>
<br>
There is also no dijkstra_sp_delta_cc with a cost column parameter, so<br>
a user has to rename the column containing the cost value to "length"<br>
to use this clipping function. Etc....<br>
<br>
Personally I am getting confused with all these functions and would<br>
like to just trim it down to dijkstra_sp_delta and astar_sp_delta with<br>
a cost column parameter along with reverse_cost and directed<br>
parameters.<br>
<br>
Opinions?<br>
<br>
Mario.<br>
_______________________________________________<br>
pgrouting-dev mailing list<br>
<a href="mailto:pgrouting-dev@lists.osgeo.org">pgrouting-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/pgrouting-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/pgrouting-dev</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse">Georepublic UG & Georepublic Japan<br>eMail: <a href="mailto:daniel.kastl@georepublic.de" style="color:rgb(66,99,171)" target="_blank">daniel.kastl@georepublic.de</a><br>

Web: <a href="http://georepublic.de/" style="color:rgb(66,99,171)" target="_blank">http://georepublic.de</a></span><br>
</div>