Navigation Menu

Skip to content

dotcs/kmt2es

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Komoot-to-ElasticSearch Tour Importer

Tool that helps to download tour data from Komoot and import it into an ElasticSearch database.

Getting started

This tool works with the Komoot API and needs to authenticate against the API. You need to log into the web UI and obtain your user id by clicking on your profile and extract the ID from the URL, e.g. given this URL https://www.komoot.de/user/1234567890 your user id would be 1234567890.

To call the API as this user you need to obtain your session information by having a look at a request, e.g. in Firefox Storage Inspector. This should give you three cookies: kmt_auth, kmt_session and kmt_session.sig.

Then store those values as bash variables:

# Enter your values here
KOMOOT_USER_ID="<...>"
KOMOOT_COOKIE="kmt_auth=<...>; kmt_session=<...>; kmt_session.sig=<...>"

Create and run docker container

This repository contains a Dockerfile that allows to build a docker container that comes with all necessary tools pre-installed:

docker build -t kmt2es:latest .
docker run --rm -it kmt2es \
    --user-id ${KOMOOT_USER_ID} \
    --cookie "${KOMOOT_COOKIE}" \
    --elasticsearch-host http://localhost:9200

About

Import tours that have been recorded by Komoot into an ElasticSearch database

Resources

License

Stars

Watchers

Forks

Packages

No packages published