<div dir="ltr">Maybe to clearify. <div><br></div><div>I've got the following two tables:</div><div><br></div><div>Table at_2po_4pgr with the columns:</div><div><br></div><div><div> id integer NOT NULL,</div><div> osm_id bigint,</div>
<div> osm_name character varying,</div><div> osm_meta character varying,</div><div> osm_source_id bigint,</div><div> osm_target_id bigint,</div><div> clazz integer,</div><div> flags integer,</div><div> source integer,</div>
<div> target integer,</div><div> km double precision,</div><div> kmh integer,</div><div> cost2 double precision,</div><div> reverse_cost double precision,</div><div> x1 double precision,</div><div> y1 double precision,</div>
<div> x2 double precision,</div><div> y2 double precision,</div><div> geom_way geometry(LineString,4326)</div></div><div><br></div><div>and Table routing_pair with the columns:</div><div><br></div><div><div> id integer,</div>
<div> h_key integer,</div><div> lat_htl double precision,</div><div> lon_htl double precision,</div><div> source integer,</div><div> geom_htl geometry(Point,4326),</div><div> lat_bhf double precision,</div><div> lon_bhf double precision,</div>
<div> target integer,</div><div> geom_bhf geometry(Point,4326)</div></div><div><br></div><div><br></div><div>The routing_pair table hold three important information:</div><div>ID</div><div>SOURCE</div><div>TARGET</div><div>
<br></div><div>All columns are filled (source + target are calculated from at_2po_4pgr.</div><div><br></div><div>The task seems to be quite simple: I want for each row from the routing_pair the distance between soure + target (and if possible its geom).</div>
<div>Could you please help me how to solve this?</div><div><br></div><div>Thank you very very much!</div><div>ch</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-03-13 17:56 GMT+01:00 Carsten Hogertz <span dir="ltr"><<a href="mailto:carsten.hogertz@gmail.com" target="_blank">carsten.hogertz@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">Hi everybody,<div><br></div><div>I have a table with about lets say 1.000 rows of pairs of origin/destination and a routable network table.</div>
<div><br></div><div>The origin/destination table (my_route) has a</div>
<div>- pair_id</div><div>- source (calculated nearest node from the network table)</div><div>- target (also calculated from the network table)</div><div><br></div><div><br></div><div>Where do I have to start or what do I have to do to get the shortest path between these pairs?</div>
<div><br></div><div>Could anybody please help me to solve this?</div><div><br></div><div>Thanks</div><span class="HOEnZb"><font color="#888888"><div>ch</div></font></span></div>
</blockquote></div><br></div>