1. Home
  2. Introduction
  3. Documents
  4. Software
    1. Projects
      1. Map
      2. Data
      3. Encoder
      4. Decoder
      5. Binary
      6. XML
      7. Datex2
    2. Download
    3. Maven
    4. API
    5. Tools
  5. Test data
  6. FAQ
  7. Newsletter
  8. Users
  9. Contact

OpenLR™ - Binary package

The binary package consists of classes for reading and writing binary location reference data as a service. The OpenLR™ encoder may use this package to create a binary representation of a location reference. The OpenLR™ decoder may use this package to receive and decode binary location reference data. This package implements the the binary data format as described in the OpenLR™ white paper.
The default version is 3.

Each piece of information is encapsulated in an own class. The application needs to set the relevant fields and afterwards the data can be written to a BitstreamOuput. After reading data from a BitstreamInput the data can also be directly accessed from the corresponding objects. The applications needs to ensure that the order of data in the input/output stream is correct.

The bitstream implementation uses a Big Endian alignment and can store and read data with a maximum size of 32 bits at a time. The total size of a bitstream is not limited. The implementation offers to read from and write to byte arrays and files.

The implementation also offers logging functionality (log4j) which can be configured using the logging.properties file provided in the package or you need to put a file name log4j.properties in your classpath.

The following table summarizes the binary package related links on this website.

The binary software package can be downloaded in the software section. Download
Accessing the binary package with Maven Maven access
Binary package reports generated by Maven Reports
Binary package API documentation API