akireserrano86 / googletransitdatafeed

Automatically exported from code.google.com/p/googletransitdatafeed
0 stars 0 forks source link

No route_id identified in some regional transxchange files #369

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Use the transxchange2GoogleTransitHandler.jar to parse xml from 'NW' region.
2. The routes.txt file outputs a 0 as route_id (also the same in trips.txt)
3.

What is the expected output? What do you see instead?

Expected is a unique identifier for the route whereas a 0 is given. This is 
down to the xml id attribute being empty / not populated by regional provider

E.G

<Services>
    <Service>
      <ServiceCode>GM001920</ServiceCode>
      <Lines>
        <Line id="0">
          <LineName>192</LineName>
        </Line>
    </Service>
</Services

POSSIBLE SOLUTION:

I have identified that the Service Code is available in all regional files and 
maybe used as a route identifier?

What version of the product are you using? On what operating system?

Using the jar file on Mac. Have tried multiple recompiles to circumvent this 
issue.

I have attached a sample NW xml file for you to investigate.

Hope this helps in some way?

Cheers

A

Original issue reported on code.google.com by andrew.j...@gmail.com on 10 Oct 2013 at 9:09

Attachments:

GoogleCodeExporter commented 8 years ago
Ok the only issue i can spot with using the ServiceCode field is that a service 
might have multiple lines (10/10a) so may not work specifically well for that :(

Original comment by andrew.j...@gmail.com on 10 Oct 2013 at 9:24