[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [sumo-user] generating PT routes
|
Hi Feresteh,
I am not aware of any option to import bus stops from a shape file. GTFS import uses the same information (ID, lon, lat) but has a completely different file format. As a last resort you may create your own script which reads the stop positions, guesses the closest network position using sumolib.net.convertLonLat2XY and sumolib.net.getNeighboringEdges and finally writes the additional file of bus stops.
Best regards
Mirko
-----Original-Nachricht-----
Betreff: [sumo-user] generating PT routes
Datum: 2024-09-16T18:41:07+0200
Von: "fereshte jafari via sumo-user" <sumo-user@xxxxxxxxxxx>
An: "Sumo project User discussions" <sumo-user@xxxxxxxxxxx>
Hi all,
I have two shapefiles: one containing road information (including ID, start and end nodes, speed, etc.) and another with just bus stops (ID, longitude, and latitude). I have a few questions:
1- Is netconvert capable of merging these two separate shapefiles into a single SUMO network (.net) file?
Although the shapefiles were initially downloaded from OSM (Geofabrik), I have made some modifications by deleting many roads and stops, keeping only the primary and secondary roads, along with the bus stops on those roads.
2- I’m wondering if the --ptline-output option in netconvert will work in this case. If not, what would you suggest for generating PT routes (i.e., sampleRoutes.rou.xml)?
I also have traffic count data (for cars and buses) from detectors.
3- Once I generate the sampleRoutes.rou.xml for buses, I’m considering using routeSampler.py to create the final PT routes. Would you recommend this approach?
Thank you for your help!
Sincerely,
Fereshteh Jafari Shahdani
PhD candidate, Dep. of Civil Engineering
ISISE - University of Minho