<commit_before># python-osrm

A Python wrapper around the [OSRM API](https://github.com/Project-OSRM/osrm-backend/wiki/Server-api).

[![Build Status](https://travis-ci.org/mthh/python-osrm.svg?branch=master)](https://travis-ci.org/mthh/python-osrm)

- Provide an easy access to _viaroute_, _table_, _trip_, _match_ and _nearest_ functionnalities.
- Wrap most of the options of the API (overview, steps, alternatives, etc.).
- Allow to directly decode geometry to various formats (list of coordinates, WKT, WKB) to be integrated in, let's say, a geo-layer creation with python ogr package.
- Send coordinates encoded as Polyline as this is the prefered way to query the API.
- Allow to draw accessibility isochrones around a point (through the utilisation of OSRM _table_ service).
- Intended to work on python 2.7.x and python 3.
- Open to suggestions !

## Installation

```
$ pip install osrm
```

## Running the test suite

```
python setup.py test
```

## Requires

- polyline
- numpy
- pandas
- geopandas
- GDAL
<commit_msg>Readme: add linux libgdal-dev + link to repo requirement<commit_after># python-osrm

A Python wrapper around the [OSRM API](https://github.com/Project-OSRM/osrm-backend/wiki/Server-api).

[![Build Status](https://travis-ci.org/mthh/python-osrm.svg?branch=master)](https://travis-ci.org/mthh/python-osrm)

- Provide an easy access to _viaroute_, _table_, _trip_, _match_ and _nearest_ functionnalities.
- Wrap most of the options of the API (overview, steps, alternatives, etc.).
- Allow to directly decode geometry to various formats (list of coordinates, WKT, WKB) to be integrated in, let's say, a geo-layer creation with python ogr package.
- Send coordinates encoded as Polyline as this is the prefered way to query the API.
- Allow to draw accessibility isochrones around a point (through the utilisation of OSRM _table_ service).
- Intended to work on python 2.7.x and python 3.
- Open to suggestions !

## Installation

```
$ pip install osrm
```

## Running the test suite

```
python setup.py test
```

## Requires

### Linux

- libgdal-dev

### Python packages

- polyline
- numpy
- pandas
- geopandas
- GDAL

### Running the test suite

```
python setup.py test
```

{'fraction_non_alphanumeric': 0.10834088848594742, 'fraction_numerical': 0.0027198549410698096, 'mean_word_length': 4.073563218390805, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '275754', 'n_tokens_mistral': 723, 'n_tokens_neox': 691, 'n_words': 258}