Package org.onebusaway.transit_data_federation.model

Examples of org.onebusaway.transit_data_federation.model.StopSequenceCollection


      List<StopSequence> patterns = sequencesByGroupId.get(direction);

      Segment segment = segments.get(direction);

      // System.out.println("  " + direction + " => " + name);
      StopSequenceCollection block = new StopSequenceCollection();

      if (segment.fromLat == 0.0)
        throw new IllegalStateException("what?");

      StopSequenceCollectionKey key = new StopSequenceCollectionKey(null,
          direction);
      block.setId(key);
      block.setPublicId(direction);
      block.setDescription(name);
      block.setStopSequences(patterns);
      block.setStartLat(segment.fromLat);
      block.setStartLon(segment.fromLon);
      block.setEndLat(segment.toLat);
      block.setEndLon(segment.toLon);

      blocks.add(block);
    }

    return blocks;
View Full Code Here

TOP

Related Classes of org.onebusaway.transit_data_federation.model.StopSequenceCollection

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.