Skip to main content

Tools supporting the Open511 format, which aims to make road information open and shareable.

Project description

Some utilities for the Open511 API format. Includes a validator, a tool to convert between Open511 serializations, a Web interface for validation and conversion, and some utility/parsing code.

Build Status

Requirements

Python 2.7 or 3.5, libxml2. Linux or MacOS. (It might work on Windows, but hasn’t been tested. We’d be happy to work with anyone interested in running this on Windows.)

Installation

This package is a Python application. The current best practice is to install into an isolated Python environment, created with the virtualenv package for Python 2, or pyvenv for Python 3. Things should still work if you don’t create an environment, but you may need to run the setup commands below as root.

Clone this repository, then run python setup.py install. Or, to install the latest released version, run easy_install open511.

Usage

open511-validate filename.xml

open511-validate http://demo.open511.org/api/events/

open511-convert --help

open511-convert filename.xml > filename.json

open511-convert filename.json > filename.xml

Conversions

Available output formats: Open511 JSON (json), Open511 XML (xml), MASAS-compatible Atom (atom), KML (kml)

Input formats: Open511 XML or JSON, and Traffic Management Data Dictionary (TMDD) XML

You can convert from any input format to any output format, e.g. open511-convert input.tmdd -f kml output.kml

TMDD

Due to the size and complexity of the TMDD specification, some input files may not be supported. Please contact us if you have problems with a particular TMDD input file, and we’ll try to get it working!

To produce production-ready Open511 XML from TMDD, you need to specify provide some information on your Open511 deployment via environment variables. Set OPEN511_EVENTS_URL to the URL to your Open511 events endpoint, OPEN511_JURISDICTION_URL to the URL of the appropriate Open511 jurisdiction resource, and OPEN511_JURISDICTION_ID to the Open511 ID of your jurisdiction. If these are not set, example values will be used.

More details on the conversion algorithm is in docs.

Web interface

A Web interface, available at http://validator.open511.org/, is in open511/webtools/init.py. Install the dependencies (listed in requirements.txt, or run easy_install Flask requests), then run python open511/webtools/__init__.py to start up a local server.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

open511-0.5.tar.gz (32.8 kB view details)

Uploaded Source

File details

Details for the file open511-0.5.tar.gz.

File metadata

  • Download URL: open511-0.5.tar.gz
  • Upload date:
  • Size: 32.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for open511-0.5.tar.gz
Algorithm Hash digest
SHA256 c82debc7d61c582770f7db59c0d82c96bda2fda96ca145714b7dd7eeecae2b7c
MD5 4745faac60ba639fa6e82ca8ac97abbd
BLAKE2b-256 d4eb9adafea742f09132a5851cdc1f7806628cb167aa8b3ef0f950941827136a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page