<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<STYLE type=text/css>DIV {
        MARGIN: 0px
}
</STYLE>
<META content="MSHTML 6.00.6000.16640" name=GENERATOR></HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>I would say duplicate the node where such situation occure and
retouche the segment's node references, which would give you: A-O-C and
B-O2-D</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>maybe there is a smartest way to do this, you should ask on
the pgrouting forum ,there are lot of more experimented people
there</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>regards</FONT></DIV>
<DIV><FONT size=2>Oliver</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=maduramw@yahoo.com href="mailto:maduramw@yahoo.com">Madura
Weerasinghe</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=oliver.christen@camptocamp.com
href="mailto:oliver.christen@camptocamp.com">Oliver Christen</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, April 21, 2008 8:52
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Cartoweb-users] Please help
me. I need ur help. (PgdijkstraRouting Module)</DIV>
<DIV><BR></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: arial, helvetica, sans-serif">
<DIV
style="FONT-SIZE: 12pt; FONT-FAMILY: arial, helvetica, sans-serif">Hi</DIV>
<DIV
style="FONT-SIZE: 12pt; FONT-FAMILY: arial, helvetica, sans-serif"> </DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: arial, helvetica, sans-serif">Thank
u very much for ur help. But actually it's not the thing that I wanted. I'll
explain it using an example.</DIV>
<DIV
style="FONT-SIZE: 12pt; FONT-FAMILY: arial, helvetica, sans-serif"> </DIV>
<DIV
style="FONT-SIZE: 12pt; FONT-FAMILY: arial, helvetica, sans-serif">
B</DIV>
<DIV
style="FONT-SIZE: 12pt; FONT-FAMILY: arial, helvetica, sans-serif">
|</DIV>
<DIV
style="FONT-SIZE: 12pt; FONT-FAMILY: arial, helvetica, sans-serif">
|</DIV>
<DIV
style="FONT-SIZE: 12pt; FONT-FAMILY: arial, helvetica, sans-serif">
|</DIV>
<DIV
style="FONT-SIZE: 12pt; FONT-FAMILY: arial, helvetica, sans-serif">
|</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: arial, helvetica, sans-serif">A
------------------ O ----------------C</DIV>
<DIV
style="FONT-SIZE: 12pt; FONT-FAMILY: arial, helvetica, sans-serif">
|</DIV>
<DIV
style="FONT-SIZE: 12pt; FONT-FAMILY: arial, helvetica, sans-serif">
|</DIV>
<DIV
style="FONT-SIZE: 12pt; FONT-FAMILY: arial, helvetica, sans-serif">
|</DIV>
<DIV
style="FONT-SIZE: 12pt; FONT-FAMILY: arial, helvetica, sans-serif">
|</DIV>
<DIV
style="FONT-SIZE: 12pt; FONT-FAMILY: arial, helvetica, sans-serif">
D</DIV>
<DIV
style="FONT-SIZE: 12pt; FONT-FAMILY: arial, helvetica, sans-serif"> </DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: arial, helvetica, sans-serif">For
exmple just think that we can travel from B to D (across O), but can't from A
to D (no right turn AOD). So at that time the road segment OD is neither one
way nor closed. So this situation can't be handled simply by making a road
segment either one way or closed. So I want a solution to control this
situation. Please help me.</DIV>
<DIV
style="FONT-SIZE: 12pt; FONT-FAMILY: arial, helvetica, sans-serif"> </DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: arial, helvetica, sans-serif">Thank
you in advance.</DIV>
<DIV
style="FONT-SIZE: 12pt; FONT-FAMILY: arial, helvetica, sans-serif"> </DIV>
<DIV
style="FONT-SIZE: 12pt; FONT-FAMILY: arial, helvetica, sans-serif">Regards</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: arial, helvetica, sans-serif">
<DIV>Madura</DIV><BR><BR></DIV>
<DIV
style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">-----
Original Message ----<BR>From: Oliver Christen
<oliver.christen@camptocamp.com><BR>To: Madura Weerasinghe
<maduramw@yahoo.com>; cartoweb-users@lists.maptools.org<BR>Sent: Monday,
April 21, 2008 11:59:00 AM<BR>Subject: Re: [Cartoweb-users] Please help me. I
need ur help. (PgdijkstraRouting Module)<BR><BR>
<STYLE type=text/css>DIV {
MARGIN:0px;}
</STYLE>
<DIV><FONT size=2>Hi</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>this case is explained on the pgrouting website <A
href="http://pgrouting.postlbs.org/wiki/OneWayStreets" target=_blank
rel=nofollow>http://pgrouting.postlbs.org/wiki/OneWayStreets</A></FONT></DIV>
<DIV><FONT size=2>it should be valid for pgdijkstra </FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>regards</FONT></DIV>
<DIV><FONT size=2>Oliver</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV style="BACKGROUND: #e4e4e4; FONT: 10pt arial"><B>From:</B> <A
title=maduramw@yahoo.com href="mailto:maduramw@yahoo.com" target=_blank
rel=nofollow ymailto="mailto:maduramw@yahoo.com">Madura Weerasinghe</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=cartoweb-users@lists.maptools.org
href="mailto:cartoweb-users@lists.maptools.org" target=_blank rel=nofollow
ymailto="mailto:cartoweb-users@lists.maptools.org">cartoweb-users@lists.maptools.org</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Sunday, April 20, 2008 9:46
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [Cartoweb-users] Please help
me. I need ur help. (PgdijkstraRouting Module)</DIV>
<DIV><BR></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: arial, helvetica, sans-serif">
<DIV>
<DIV>Hi,</DIV>
<DIV> </DIV>
<DIV>Im developing an online traffic information system using Pgdijkstra
Routing Module. Everything works, fine. But need a small help. In Pgdijkstra
Routing Module, when the shortest path is selected it assumes that it can
travel any direction at any junction. (say it is reaching the junction
then it can travel to all other directions). But we know that in real
life, sometimes it is controlled and it can't travel to all the directions.
(some directions are not possiple). I think u got my point. (this is not
making a road segment oneway or closed. It's possible to be done). So I
don't know how to implement that. (controlling the directions which it can
travel). If you can please help me.</DIV>
<DIV> </DIV>
<DIV>Thank you in advance.</DIV>
<DIV> </DIV>
<DIV>Madura</DIV></DIV></DIV><BR>
<HR SIZE=1>
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. <A
href="http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ"
target=_blank rel=nofollow>Try it now.</A>
<P><SPAN
style="BORDER-TOP: rgb(128,128,128) 1px solid; MARGIN: 8px 0px; OVERFLOW: hidden; WIDTH: 100%; BORDER-BOTTOM: rgb(212,208,200) 1px solid; HEIGHT: 2px; BACKGROUND-COLOR: black"></SPAN>
<P></P>_______________________________________________<BR>Cartoweb-users
mailing list<BR>Cartoweb-users@lists.maptools.org<BR><A
href="http://lists.maptools.org/mailman/listinfo/cartoweb-users"
target=_blank>http://lists.maptools.org/mailman/listinfo/cartoweb-users</A><BR></BLOCKQUOTE></DIV>
<DIV
style="FONT-SIZE: 12pt; FONT-FAMILY: arial, helvetica, sans-serif"><BR></DIV></DIV><BR>
<HR SIZE=1>
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. <A
href="http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ ">Try
it now.</A></BLOCKQUOTE></BODY></HTML>