Thank you for your prompt replay,

What i want to do is like your answer (Section B). I will try your
solution, also this is the solution which i thought but i was looking for a
more straight-forward solution. I think that there is no other solution.

You can mark the thread as resolved,

Have a good day,
Arslan,

*Arslane*, un mec sympa et drole qui vous veut du bien !

Citation favorite : " Qui aime bien chatîe bien"


2016-05-11 12:04 GMT+02:00 Jakob Erdmann <[email protected]>:

> Hello,
> there is currently no straight-forward way to achieve this.
> a) If the given vehicle should make a detour via Z you can use a
> combination of
>  vehicle.changeTarget, vehicle.setStop and vehicle.rerouteTraveltime
> use setStop to define edges that must be in the vehicles route (i.e. Z or
> parts of the original route that shall be kept)
> use changeTarget if the vehicle should travel only to Z and end there
> use rerouteTraveltime to compute a new route including the defined
> intermediate edges
> call setStop with duration 0 to remove the stops again
>
> b) if you just need the edges between the closest node and Z (i.e. B to Z)
> you have to
> - define a route with a single edge before B
> - add a vehicle with that route
> - call changeTarget to Z for the new vehicle
> - retrieve the vehicles route edges
> - remove the vehicle
> - remove the single-edge route
>
> regards,
> Jakob
>
>
>
> 2016-05-11 11:00 GMT+02:00 Arslane Hamza Cherif <[email protected]>:
>
>> Hello,
>>
>> I will try to explain it in a more clear way, I have a vehicule going for
>> example from points/nodes A to F passing by B,C,D & E.
>>
>> What i want to achieve is to determine:
>>
>>    1. Which node from B,C,D & E is the closest (Driving distance not Air
>>    distance) to a target node Z ?
>>    2. For this closest node, what is the route corresponding to the
>>    minimal driving distance computed between it and Z ?
>>
>> For the first question, the best solution is to retrieve nodes that
>> compose the current route of a vehicule than calculate the driving distance
>> between each node and the target node.
>>
>> For the second question, *i don't now how to achieve it. this is what i
>> am looking for.*
>>
>> Thank you for your time,
>>
>> Best regards,
>> Arslane
>>
>>
>> *Arslane*, un mec sympa et drole qui vous veut du bien !
>>
>> Citation favorite : " Qui aime bien chatîe bien"
>>
>>
>> 2016-05-11 10:46 GMT+02:00 Jakob Erdmann <[email protected]>:
>>
>>> Your question remains unclear to me. Are you asking for
>>>  1) a completely new route that approaches this point or
>>>  2) for an earlier end of the given route close to that point?
>>>
>>> 2016-05-11 10:20 GMT+02:00 Arslane Hamza Cherif <[email protected]>:
>>>
>>>> Hello,
>>>>
>>>> I asked before about "How to calculate the closest point between a
>>>> vehicule
>>>> route and a fixed point in SUMO & TraCI"
>>>> <https://sourceforge.net/p/sumo/mailman/message/34977131/>, the best
>>>> bet
>>>> seems to be to first define nodes who compose the current route, than
>>>> in a
>>>> second step calculate the distance between each route node and the
>>>> target
>>>> node with the use of TraCI Command *Distance Request *
>>>>
>>>> Now, What i am looking for is to retrieve the best route that
>>>> correspond to
>>>> the computed
>>>> *Distance Request, how can i do it ?*
>>>> Many thanks,
>>>>
>>>> Best regards,
>>>> Arslan
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Mobile security can be enabling, not merely restricting. Employees who
>>>> bring their own devices (BYOD) to work are irked by the imposition of
>>>> MDM
>>>> restrictions. Mobile Device Manager Plus allows you to control only the
>>>> apps on BYO-devices by containerizing them, leaving personal data
>>>> untouched!
>>>> https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
>>>> _______________________________________________
>>>> sumo-user mailing list
>>>> [email protected]
>>>> https://lists.sourceforge.net/lists/listinfo/sumo-user
>>>>
>>>
>>>
>>
>
------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
sumo-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user

Reply via email to