[OSRM-talk] arrive to destination on the adequate side in two-way streets

Florian Lohoff f at zz.de
Tue Mar 10 17:47:10 UTC 2015


On Mon, Mar 09, 2015 at 02:54:06PM -0300, Fernando Pacheco wrote:
> Hi all.
> 
> We are developing an application for routing solid waste collection
> trucks. We use OSRM to calculate distances between collecting points
> (intermediate points).
> 
> Some customers are located in two-way streets (simple, no separators)
> ... How can I say to OSRM that must arrive to the collecting points at
> the adequate side of the street? That is, on the side where the client
> is, without crossing the opposite direction of the street to access the
> load.
> 
> Is it possible?. Thanks in advance. Fernando.

I had the immediate idea of taking the dataset and duplicated all
non-oneway streets (only the way) and making it 2 oneways. 

I am unshure now how to tell osrm you want to end up on a specific 
way (not location) which is geometrically identical to the other.


Another idea - create small fake ways via postgis etc from the nearest
road to your collection point near the street and add a fake turn
restriction from the road ( only_right_turn ). 


Flo
-- 
Florian Lohoff                                                 f at zz.de
     We need to self-defense - GnuPG/PGP enable your email today!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 828 bytes
Desc: Digital signature
URL: <http://lists.openstreetmap.org/pipermail/osrm-talk/attachments/20150310/4c80b05d/attachment.sig>


More information about the OSRM-talk mailing list