Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Mapping of GTFS data to network error

Dear Michael,

I think the problem was caused by the OSMnx network rather than the gtfs2pt script. I downloaded the OSM using the osmwebwizard (as suggested by Harald) and it worked great!

However, I noticed that the buses don't seem to follow the routes given in the GTFS data (shapes file). Some generated routes have loops but allowing buses to reroute fixes this temporarily. Are there some settings that I need to activate (e.g. restrict some roads so buses don't use it or an option of the script)? I attached a photo that describes this. If my explanation isn't clear, please let me know.

I apologize that I can't share the data at this time as it isn't released to the public yet.

Thank you.

(Resending this email because I got an error and just noticed it. Not sure if my email went through or not. I apologize if you already received this.)

On Thu, Oct 14, 2021 at 5:41 AM Michael Behrisch <oss@xxxxxxxxxxx> wrote:
Hi,
the first warning about the tracemapper can be ignored but the second is
strange, it basically says that it either could not find data for busses
in the GTFS or no edges alllowing busses in the network and thus
generated no bus network. Since the GTFS import is quite new and all
data providers implement the standard a little bit differently, can you
share your inputs?

Best regards,
Michael

Am 12.10.21 um 08:43 schrieb Genaro Jr. Peque:
> Hi all,
>
> I am currently trying to map my GTFS data to the OSM network I
> downloaded using OSMnx (network_type=drive). I converted the OSM data
> (only nodes and edges) to the sumo network file via netconvert.
>
> I don't know exactly how the gtfs2pt.py script works but I am getting
> this error message after running it with this command:
>
> Command:
> /python "C:\Program Files
> (x86)\Eclipse\Sumo\tools\import\gtfs\gtfs2pt.py" -n tokyo_drive.net.xml
> --gtfs BUS-GTFS_20211007.zip --date 20211103
> /
>
> Error:
> /Success.
> Warning! No mapping library found, falling back to tracemapper.
> Warning! No net resources\gtfs\bus.net.xml/
>
> Am I correct to assume that the gtfs2pt.py script is trying to map each
> bus stop to an edge by using a map matching algorithm? Or does the
> mapping rely on geometries (e.g. public_transport=bus_stop)? 
>
> Since I can't seem to make it work, I was planning to manually extract
> the data from the GTFS file and match the bus stop to each edge by
> finding the nearest edge using the closest euclidean distance of its
> (lat, lon) pair. The challenge is on how to know which lane of the edge
> to match it to and the order of the edges that the buses will traverse
> within the assigned route. I was hoping to get some insight into how the
> gtfs2pt.py script is calculating it.
>
> Thank you.
>
> _______________________________________________
> sumo-user mailing list
> sumo-user@xxxxxxxxxxx
> To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
>

_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user

Attachment: Screenshot 2021-10-18 100435.png
Description: PNG image


Back to the top