Package opentrep

C++ library providing a clean API for parsing travel-focused requests

https://github.com/trep/opentrep

opentrep aims at providing a clean API, and the corresponding C++
implementation, for parsing travel-focused requests.
It powers the transport-search.org Web site.

opentrep uses Xapian (www.xapian.org) for the Information Retrieval
part, on freely available travel-related data (e.g., country names and codes,
city names and codes, airline names and codes, etc.), mainly to be found in
the OpenTravelData project (github.com/opentraveldata/opentraveldata).

The data files are available from transport-search.org/data/optd/por/

opentrep exposes a simple, clean and object-oriented, API. For instance,
the OPENTREP::interpretTravelRequest() method takes, as input, a string
containing the travel request, and yields, as output, the list of the
recognized terms as well as their corresponding types.
As an example, the travel request
'Washington DC Beijing Monday a/r +AA -UA 1 week 2 adults 1 dog' would give
the following list:
 * Origin airport: Washington, DC, USA
 * Destination airport: Beijing, China
 * Date of travel: next Monday
 * Date of return: 1 week after next Monday
 * Preferred airline: American Airlines; non-preferred airline: United Airlines
 * Number of travelers: 2 adults and a dog

The output can then be used by other systems, for instance to book the
corresponding travel or to visualize it on a map and calendar and to
share it with others.

opentrep makes an extensive use of existing open-source libraries for
increased functionality, speed and accuracy. In particular the
Boost (C++ Standard Extensions: www.boost.org) and
SOCI (github.com/SOCI) libraries are used.

Note that opentrep currently only recognizes points of reference (POR),
as to be found in the following file: bit.ly/3fQaddv
A good complementary tool is GeoBase
(opentraveldata.github.io/geobases), a Python-based software
able to access to any travel-related data source.

Version: 0.07.15

See also: opentrep-devel.

General Commands

opentrep-dbmgr Interactive command-line utility to manage the SQL database (SQLite3 or MySQL)
opentrep-indexer Command-line utility to Xapian-index a travel-related database text file
opentrep-searcher Command-line utility to parse travel requests