add panormax cli

Signed-off-by: Matthias <matthias@pebble>
This commit is contained in:
Matthias 2024-10-24 00:01:05 +02:00
parent 5099f0f368
commit c8404cdd54
No known key found for this signature in database
GPG key ID: F141C4C1F8F39D19
3 changed files with 11 additions and 3 deletions

View file

@ -102,9 +102,10 @@ git clone https://github.com/Stefal/mapillary_download.git
cd mapillary_download
python3 -m venv mly_venv
source mly_venv/bin/activate
source secrets_variables.sh
python -m pip install -r requirements.txt
```
Then you can run `python mapillary_download.py "MLY|xxxx|xxxxxxx" --sequence_ids xxxxxxxxxxx`
Then you can run `python mapillary_download.py $MAPILLARY_DEV_TOKEN --sequence_ids xxxxxxxxxxx`
When you're done with the script, simply run `deactivate` to exit the virtual environnement.
On windows you can create a virtual environnement too, or use the prebuilt `mapillary_download.exe` available on the release page.
@ -117,8 +118,10 @@ go in your `data` folder, and to the user subfolder, and assuming you have alrea
```Shell
source mly_venv/bin/activate
source secrets_variables.sh
cd data/some_user
for dir in */; do dir=${dir%?} ; geovisio upload --api-url https://panoramax.openstreetmap.fr "$dir" --token=BLAH_BLAH ; done
for dir in */; do dir=${dir%?} ; panoramax_cli upload --api-url https://panoramax.openstreetmap.fr "$dir" --token=$PANORAMAX_DEV_TOKEN ; done
```
Have fun!