Python

Installing

The Targomo-python library uses Python 3. Make sure this is installed on your system. Install the library using pip install targomo_python Test the install python -m targomo_python.cli -h this shows the cli usage and help

You can use the library with the CLI or from Python code.

python -m targomo_python.cli --travelType walk \
               --travelTimes 1800 \
               --source="52.52;13.405" \
               --outputDir=data/ \
               --outputFilename=test.geojson \
               --serviceKey='Your key here' \
               --serviceUrl=http://api.targomo.com/germany/ \
               --srid=4326 \

Take a look at this code example to see how you can use the Python library with code.