Based on PM by @mga_geo, I just added analysis support of gtfs feed data to ptna for
Analysis support for osm public-transport data has been added already before
Based on PM by @mga_geo, I just added analysis support of gtfs feed data to ptna for
Analysis support for osm public-transport data has been added already before
PTNA seems to have problems with executing PHP.
Admins are informed.
All dynamically created pages (ending with *.php) cannot be delivered as usual.
However, analysis reports can be accessed directly:
Example: FR-PAC-Alpes-de-Haute-Provence using
https://ptna.openstreetmap.de/results/FR/PAC/FR-PAC-Alpes-de-Haute-Provence-Analysis.html
i.e. by adding the country FR and region PAC to the path of the page.
This applies for nearly all pages except DE-Bahnverkehr, EU-Flixbus, US-Amtrack, …
where there is no “region” (i.e. no second hyphen ‘-’) in the name.
Sorry for the inconvenience, hope this will be fixed ASAP.
Has been fixed!
Some reports cannot be created. We’re working on a fix.
Problem solved for the moment.
Fortunately, only UTC-06, CST, America/Chicago was affected at their 03:00 AM CST time.
Analysis will be restarted in 5 minutes.
There’s a discussion on GitHub on how to improve the GTFS trip vs OSM route comparison in PTNA.
Maybe you want to share some ideas, either in GitHub (preferred) or here (I’ll copy and paste to GitHub then).
@mcliquid @Patchi @mga_geo @Nielkrokodil @stanton @donmac703 @hlfan @David_Crochet @Jarek and of course all others as well.
Public BETA testing is now open for this new feature.
Testing can be achieved be adding “&diff” to the URL of compare-routes.php and compare-trips.php after clicking ![]()
As always: feed-back, comments, suggestions, questions, … appreciated
“I now declare this basar open!” Dinner for One
My first test: looks good. The basic function is there and seems to do what was expected. I had one case where the OSM and GTFS had the same count of stops but the OSM line had one stop more on the middle of the line and further one stop missed. The ‘old’ PTNA comparison kind of displays that problem but shows a greater distance between the stops - here it is an interesting case as the stop nb 8 has indeed a great distance between OSM and GTFS (the GTFS has an quite old position of the stop) but it is not an anomaly! The ‘new’ comparison shows the problems directly.
The only “critic” that I have, I would expect some kind of symbol/colour where there is some kind of anomaly (like the distance in yellow or orange). But as always @ToniE great work !
Thanks.
N.B.: for this analysis the weight of ‘name’ comparison has been set to ZERO: all GTFS ‘stop_name’ are in capital letters, always.
I will implement some changes regarding the detection of “is GTFS stop in same stop_area as OSM platform?”. The decision used for the ‘diff’ bases sorting should be as fuzzy as possible. False positives will be detected during comparison of ‘name’, ‘stop_id’, and position.
Additional tests for ‘diff’ based sorting
Yeah, I totally agree. You’ve marked “Carrefour de L’Europe” and “DIDEROT” here.
What would be the best way to mark that?
for the French language, it is not always easy. The old rule is that there are no ‘accent’ or ‘cédille’ on capital letters but that is not true anymore. If you want to compare strings may be the best is to get rid of all ‘accents’, ‘cédilles’ and to lower everything and then compare. The unicode normalisation should do that probably. The only thing that will not work with the unicode normalisation are the chars Œ and Æ. But these are not very common. And if you want to decompose these 2 chars ‘Œ’ is ‘OE’ and ‘Æ’ is ‘AE’. So this maybe the best compromise.
Good question, I’m not the GUI specialist but highlight the line, it should be enough. The colour is not really relevant, it can be the yellow that you are using for the other anomalies.
Yes, thanks for the hint. I included that.
Done, see below
What I also did:
These strings (except the ‘fuzzy’ ones) will be shown if you hover the mouse over the ‘name’ and ‘ref_name’ columns
Also: ‘&diff’ added to the URL will enable this.
An interesting side, or is it the expected effect (?) is that you can now more clearly see the different directions of the routes in-bound vs out-bound by their scores and colours.
On the follow picture,
For this route_master, the route members are sorted according to PTNA’s sorting of the GTFS trips. You see the green diagonale.
N.B. GTFS trip #4 has not been mapped in OSM: it’s assumed to be an error in GTFS (regarding platform 9 of trip 3 and 4)
Should not be used for ‘diff’ based sorting
Example: GTFS stop #6 instead of #3 is identical to OSM platform #1
Edit 2026-01-18 16:17 UTC : I fixed this
This is one of the intended side effects ![]()
@ToniE would it be possible to have AU/VIC added to the PTNA Results?
I can see the GTFS feed is present at PTNA - GTFS Analysis but not in the static analysis at PTNA - Results
The source is compatible with OSM as documented at Australian Data Sources - OpenStreetMap Wiki with the CC BY waiver at File:DTP Waiver signed.pdf - OpenStreetMap Wiki
I just added analysis support for public-transport data of osm to ptna for
I found a (not so severe) bug in the diff based sorting.
The position (lat/lon) of an OSM platform (way or MP) is calculated as the closest (virtual) point of the way/MP to the corresponding GTFS stop (point) … before the diff based sorting. The distance between them is used for the sort if ‘stop_name’ and ‘name’ do not match.
After the re-sort, the corresponding GTFS stop might be a different one, the distance might have changed, the lat/lon of the (virtual) point of the OSM way/MP might actually not be the closest point to the GTFS stop.
I.e. after the diff based re-sort of the data, I have to re-calculate the lat/lon of the closest point of OSM platforms (ways/MPs).
I.e. after the diff based re-sort of the data, I have to re-draw the OSM data in the map: markers, circles and route
N.B. I have to make sure that PTNA iterates over all MP members (inner, outer) to find the closest point.
That’ll be time consuming: coding and on-demand analysis in the browser.
It will give more precise distances values. “GTFS best practices” recommends that lat/lon of GTFS stops must not be more than 4 metres away from real world positions.
Good news: the position was always correct, the marker was set to wrong position only
I just released this new feature after some public beta testing.
The following settings have been made:
This feature can be switched off by adding “&nodiff” to the URL of “compare-routes.php” and “compare-trips.php” (2nd one inherits this from the 1st one"
Based on PM by @mga_geo I just added support for analysis of public-transport data of osm to ptna for
Based on discussion PTNA-Tool und GTFS-Daten in Österreich - #70 by Findus23 I also added analysis support of public-transport data of osm to ptna for