Hello,
TraCI does not allow this kind of filtering.
Instead, you can use the sumolib function net.getNeighboringLanes() which
returns a list of edges near a given coordinate along with the distances.
This should allow you to filter out lanes with invalid permissions or
direction.
see
http://sumo.dlr.de/wiki/Tools/Sumolib#locate_nearby_edges_based_on_the_geo-coordinate

It should be possible to use these functions from java using Jython.
regards,
Jakob




2017-06-22 15:32 GMT+02:00 Husen, Wim van <[email protected]>:

> Hi All,
>
> We're facing the following challenge in our (Java) application:
>
> We receive GPS-coordinates from a vehicle (passenger type). This
> coordinates may contain a small deviation from the real position of the
> vehicle (measurement error). To get the right position on the Sumo network,
> we send a Position Conversion Message (Traci) from our application to Sumo.
>
> Due to the small deviation two problems with this function may occur:
>
>   *   A cycle-track, only allowed for bicycles may be the nearest.
>   *   The opposite lane may be the nearest. We have the heading of the
> vehicle, so we know that it's not driving in that direction.
>
> How can we ignore  not allowed tracks and tracks in the wrong direction?
>
> Does the Traci interface has the functionality to solve this problem, or
> do we have to extend it ourselves?
>
>
> Met vriendelijke groet,
>
>
>
>
>
>
>
> Wim van Husen
> Engineer Productontwikkeling
>
> T +31 88 811 56 27
> M +31 6 22 60 93 12
> [email protected]<mailto:[email protected]>
>
> Sweco Nederland B.V.
> De Holle Bilt 22
> 3732 HM  De Bilt
> T +31 88 811 66 00
> Handelsregister 30129769
> www.sweco.nl<http://www.sweco.nl>
>
>
>
> [cid:[email protected]]
>
>
>
>
>
>
>
>
>
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> sumo-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sumo-user
>
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
sumo-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user

Reply via email to