My only issue with the duarouter method is that it won’t map to latlongs for short distances on a long edge. For example, if I had a vehicle traveling on lat longs that only span 1/3 of an edge, it would map to the entire edge. This is what happens when I get the network from osm.
Following up on the other proposed solution, if I create a single edge with many geometry points, it would map the path the vehicle takes perfectly, but, I wouldn’t be able to control the vehicle speed over the path. For example, if I had data down to the second on vehicle speed and it’s latlong coordinates. Any thoughts on another option? On Sat, Feb 4, 2023 at 18:08 Jakob Erdmann <[email protected]> wrote: > The *lonLat attributes are only usable with 'duarouter' at the moment. > This will generated a route with edges that you can run in sumo. > > Am Mi., 1. Feb. 2023 um 16:08 Uhr schrieb Tom L <[email protected]>: > >> Are edges required? For example, let’s say I want to visualize a vehicle >> driving circles in a parking lot. >> >> I found the fromLonLat and toLonLat attribute and was trying to use that >> but it seems the program doesn’t like that I have no edges. >> “The route for trip t_0 has no edges” >> >> >> On Tue, Jan 31, 2023 at 16:02 Jakob Erdmann <[email protected]> >> wrote: >> >>> The usual approach would be to match the points onto a road network >>> (i.e. imported from OpenStreetMap). >>> However, if you don't care about road infrastructure at all, you could >>> also define a single edge with as many geometry points as you have. >>> You could put the list of lon,lat pairs directly into the edge 'shape' >>> attribute and then build the network with --proj.utm. >>> >>> Am Di., 31. Jan. 2023 um 18:21 Uhr schrieb Tom L <[email protected] >>> >: >>> >>>> I have a large list of latitude and longitude points I want a vehicle >>>> to follow (over 1000). The points involve multiple turns along with other >>>> behaviors such as lane merging. >>>> >>>> Is the best way to do this to create junctions for each point and then >>>> to create edges between every junction? (I.e. 1000+ junctions and edges) Is >>>> there a more streamlined way to do this? >>>> >>>> Thanks, >>>> >>>> Tom >>>> >>> _______________________________________________ >>>> sumo-user mailing list >>>> [email protected] >>>> To unsubscribe from this list, visit >>>> https://www.eclipse.org/mailman/listinfo/sumo-user >>>> >>> _______________________________________________ >>> sumo-user mailing list >>> [email protected] >>> To unsubscribe from this list, visit >>> https://www.eclipse.org/mailman/listinfo/sumo-user >>> >> _______________________________________________ >> sumo-user mailing list >> [email protected] >> To unsubscribe from this list, visit >> https://www.eclipse.org/mailman/listinfo/sumo-user >> > _______________________________________________ > sumo-user mailing list > [email protected] > To unsubscribe from this list, visit > https://www.eclipse.org/mailman/listinfo/sumo-user >
_______________________________________________ sumo-user mailing list [email protected] To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
