Hello,

traci.busstop.getLaneID("busStop#35") did not work since there is no class
in "busstop" in my installed version, you may verify it from the attachment
which is the list of classes available in my local machine. Note that I am
using the latest development version of SUMO (
https://sumo.dlr.de/docs/Downloads.php#sumo_-_latest_development_version).

However, class "busstop" is available in online documentation (
https://sumo.dlr.de/daily/pydoc/). Kindly, verify the latest development
and let me know.

thanks and regards,
Dillip Rout



On Wed, 3 Jun 2020 at 13:40, Jakob Erdmann <namdre.s...@gmail.com> wrote:

> the relationship between lane ids and edge ids is quite trivial but you
> can also use traci.lane.getEdgeID(laneID) to get one from the other.
>
> Am Mi., 3. Juni 2020 um 10:07 Uhr schrieb Tripplanner Mumbai <
> tripplanner...@gmail.com>:
>
>> Hello,
>> I am using the latest development version of SUMO (
>> https://sumo.dlr.de/docs/Downloads.php#sumo_-_latest_development_version
>> ).
>> However, I found the documentation part (
>> https://sumo.dlr.de/daily/pydoc/traci._simulation.html) that the
>> signature of findRoute is this:
>>
>> *findRoute*(self, fromEdge, toEdge, vType=''", depart=-1.0, routingMode=0
>> )
>>
>> The same signature I got in my local machine where I have installed the
>> latest development version. Note that there is no input
>> for the lanes as you mentioned. Please clarify.
>>
>> thanks and regards,
>> Dillip Rout
>>
>>
>>
>> On Wed, 3 Jun 2020 at 11:27, Jakob Erdmann <namdre.s...@gmail.com> wrote:
>>
>>> If you know the lane and position of the busStops, you can use function
>>> traci.simulation.findRoute to get the distance and traveltime between them.
>>> You can either parse lane and position from the input xml (i.e. with
>>> sumolib.xml.parse) or you can use traci.busstop.getLaneID and
>>> traci.busstop.getEndPos.
>>> The latter functions are only available in the latest development
>>> version.
>>>
>>> regards,
>>> Jakob
>>>
>>>
>>> Am Mo., 1. Juni 2020 um 08:06 Uhr schrieb Tripplanner Mumbai <
>>> tripplanner...@gmail.com>:
>>>
>>>> Hello,
>>>> I have a network and all its properties are defined. I am getting all
>>>> needed output such as stop information, trip information, person
>>>> information, etc.
>>>>
>>>> However, I would like to know how to calculate or find out the distance
>>>> and travel time (as per definition). For example, I have a transit line (or
>>>> public transport route) as follows.
>>>>     <route id="13" edges="55 55b 125 114">
>>>>         <stop busStop="busStop#35" until="0"/>
>>>>         <stop busStop="busStop#36" until="120"/>
>>>>     </route>
>>>>
>>>> Now, if I wanted to find out the distance and travel time from
>>>> busStop#35 to busStop#36. TraCI code is preferable to obtain these
>>>> requirements.
>>>>
>>>> thanks and regards,
>>>> Dillip Rout
>>>> _______________________________________________
>>>> sumo-user mailing list
>>>> sumo-user@eclipse.org
>>>> To unsubscribe from this list, visit
>>>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>>>
>>> _______________________________________________
>>> sumo-user mailing list
>>> sumo-user@eclipse.org
>>> To unsubscribe from this list, visit
>>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>>
>> _______________________________________________
>> sumo-user mailing list
>> sumo-user@eclipse.org
>> To unsubscribe from this list, visit
>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>
> _______________________________________________
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
_______________________________________________
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user

Reply via email to