mapnificent / mapnificent_cities

City data repository for mapnificent.net
https://www.mapnificent.net
49 stars 42 forks source link

Adding city of bolzano/bozen #30

Closed nikolauskrismer closed 6 years ago

nikolauskrismer commented 6 years ago

Please note that the gtfs file was created from a VDV452 source file (which is directly provided by the SASA company at http://sasabus.org/opendata (this has been documented in the .md file). Isochrone computation works without a problem...

Merano/Meran is also presented in the dataset. Here I do see a small problem. If isochrones are computed starting in Merano then Bolzano is reachable after some time. The opposite is also true in reality (one can reach Merano when starting in Bolzano) and as far as I know also in the GTFS file (there is a bus with nr. 210 in the file). However, this is not true when using the bolzano.bin file and/or mapnificent (and I don't have a clue why this is the case :-().

Maybe you want to have a look at this before merging. Also I do not know if you are willing to merge cities that have been created from the VDV452 format...

stefanw commented 6 years ago

I've noticed occasionally that symmetrical connections don't seem to work all the time.

I'll also have a look, but in case you want to debug as well, you can follow these steps:

  1. generate the extra debug info for the .bin file by supplying the -e parameter to mapnificent_generator.
  2. The resulting file should be placed in the data directory as ${city}__debug.bin
  3. The debug file is loaded into mapnificent by adding ?debug to the URL.
  4. With the debug file loaded, when you right click the map, it will console.log the transit path from each marker to the station closest to the point clicked.
stefanw commented 6 years ago

You did not provide the GTFS you generated. I generated some GTFS from the VDV data and it looks like only one direction (Merano -> Bolzano) comes out.

bolzano.zip

I used https://gtfs.pleasantprogrammer.com/ to visualise the trip and it looks like they are all going only one direction. If you can supply a tripId that doesn't let me know.

nikolauskrismer commented 6 years ago

Oh... that website is great. Did not know that before... thanks :-) The naming inside the GTFS file confused me as well, but are some trips for me. The route they belong to is "201 BZ" and one of the tripIds is 6606 (which goes from bolzano to merano)... actually the same route contains the opposite direction (e.g. tripId 6741 seems to be the opposite and goes from merano to bolzano)

stefanw commented 6 years ago

I noticed that the generated GTFS does not have a trip_headsign or a direction_id for trips. This means that the generator can't distinguish between the direction and takes only one. Let me see if I can fix that.

stefanw commented 6 years ago

I fixed this problem in mapnificent_generator v0.0.4 and trips from Bolzano to Merano now show up.

https://www.mapnificent.net/bolzano/#11/46.5407/11.2356/3900/46.4983/11.3548

nikolauskrismer commented 6 years ago

Great work... thanks :+1: