Simcity updates, December 18

The highlight of this release is a feature that is very popular on version 1 of swisstrains.ch: follow vehicle which allows you to “travel” together with a selected vehicle on the map. You can activate it in the same way, just click on the moving marker(vehicle) then in the vehicle panel click the ‘Follow’ button. The feature is available also in the romanian version despite the fact that Google Maps Satellite material has good quality only in some areas of Romania.


Other changes

  • Vehicle route: you can highlight the route that is followed by the vehicle when clicking on ‘Draw route’ button in the vehicle panel. Useful if you are interested which corners of the country are connected but also good for me in debugging if vehicles are following the right routes.
  • Newly fresh 2012 timetables are available: last week I managed to get and integrate the latest timetables from SBB and CFR websites. BTW, I just noticed that Romania changed trains classification to use European standar ones, like IC, IR, Regio, etc.

Behind the scenes of this project

I will give a talk about swisstrains.ch on January 10th in Zürich at first meetup of Webtuesday.ch in 2012. If you are interested about what it took me to create the initial project, the technology stack used and the lessons learned, then make sure you attend the meeting ! More details about location are here.

Stay up-to-date

If you want to stay in touch with these updates, best will be to subscribe to this project’s RSS feed.
Use Twitter, G+ or this space to get in touch with me and suggest further updates.

Thanks for your interest in this project !

http://simcity.vasile.ch/sbb/

Dec 18th, 2011 | Posted in Hobbies
  1. Dec 19th, 2011 at 19:55 | #1

    Salut Vasile,

    Ma bucur ca ai repornit proiectul.
    Poti sa pui la download si versiunea CFR ?
    As dori sa facem si o versiune cu operatorii privati.

    Acum va fi mai usor de preluat datele respective, impreuna cu un prieten lucram la urmatorul proiect http://www.merstrenuri.ro/
    Un site care integreaza atat operatorii privati cat si operatorul national.
    De asemenea urmarim sa integram si mersul CFM respectiv mersul din regiunea Cernauti.

    Sper sa tinem din nou legatura.

    • Dec 20th, 2011 at 22:39 | #2

      Salut Cristi,

      Ma tem ca nu pot pune tabelele orare de la CFR la download fiindca nu imi apartin. Dupa cum stii ei nu au un API, asa ca am scris un crawler care simuleaza requesturi web si stocheaza tabelele orare.

      Insa pot sa va ajut cu datele pe care le-am creeat eu, adica statiile si liniile retelei:
      http://goo.gl/de8jJ
      http://goo.gl/74w5O

      Sunt stocate in Fusion Tables, Visualize > Map > Export to KML

  2. Dec 21st, 2011 at 19:16 | #3

    Salut,
    Nu ma refer la tabelele orare ca alea le avem, atat CFR cat si operatorii privati la un loc aici http://www.merstrenuri.ro/ ci la continutul aplicatiei ca varianta pentru Elvetia https://github.com/vasile/vehicle-simulator

    Cum pot sa adaug noi statii si linii ?
    KML contine doar sectiile operate de CFR.
    Am o lista cu statiile si codurile lor.

    Adresa mea de mail e aceeasi pitcristian(a)yahoo.com

  3. Jan 5th, 2012 at 23:23 | #4

    Cum pot sa adaug noi statii si linii ?
    KML contine doar sectiile operate de CFR.
    Am o lista cu statiile si codurile lor.

    KML-ul acela sta la baza traseelor. Trebuie sa creezi o varianta encodata pentru GMaps. Daca te uiti in codul sursa vei vedea un fisier http://simcity.vasile.ch/sbb/static/js/edges_encoded-sbb.js

    Exista unul similar pentru CFR: http://cfr.webgis.ro/static/js/edges_encoded-cfr.js . Acestea sunt liniile pe care circula vehiculele din api/vehicles/0900.json . Am explicat la Github cum se porneste o noua simulare, poate vrei sa vorbesti cu cei din spatele http://www.ratt.ro/ care vor sa faca ceva similar pentru reteua de tramvaie din Timisoara.

    Pe viitor am sa adaug un Howto cu mai multe informatii, acum pur si simplu nu am timp :(

  4. Otto Wyss
    Jan 12th, 2012 at 12:38 | #5

    It’s really amazing what’s possible when the necessary data is available. Albeit I’d prefer if the mapping would also using OSM. IMO it shouldn’t be too difficult as long as the railway routes were added to OSM. I may help doing it.

    • Jan 12th, 2012 at 14:00 | #6

      Hello Otto, the railways data behind OSM is too big and will endup in a complicated graph that I need to parse in order to compute the routes between the stations, therefore I am using a simplified version of the network that you can see/download here http://goo.gl/DFHaR

      If you can find a simple way of getting rid of all the “noise” (i.e. secondary tracks, industrial lines) from OSM then please do it, but may I suggest to do on another country ? i.e. Germany or Austria, so we can build up another simulation :)

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>