mirror of
				https://forge.chapril.org/tykayn/mapillary_download
				synced 2025-10-09 17:02:46 +02:00 
			
		
		
		
	add panormax cli
Signed-off-by: Matthias <matthias@pebble>
This commit is contained in:
		
							parent
							
								
									5099f0f368
								
							
						
					
					
						commit
						c8404cdd54
					
				
					 3 changed files with 11 additions and 3 deletions
				
			
		|  | @ -102,9 +102,10 @@ git clone https://github.com/Stefal/mapillary_download.git | ||||||
| cd mapillary_download | cd mapillary_download | ||||||
| python3 -m venv mly_venv | python3 -m venv mly_venv | ||||||
| source mly_venv/bin/activate | source mly_venv/bin/activate | ||||||
|  | source secrets_variables.sh | ||||||
| python -m pip install -r requirements.txt | 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. | 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. | 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 | ```Shell | ||||||
|  | source mly_venv/bin/activate | ||||||
|  | source secrets_variables.sh | ||||||
| cd data/some_user | 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! | Have fun! | ||||||
|  |  | ||||||
|  | @ -2,3 +2,4 @@ requests >= 2.28.2 | ||||||
| pytz >= 2023.3 | pytz >= 2023.3 | ||||||
| timezonefinder >=6.2.0 | timezonefinder >=6.2.0 | ||||||
| pyexiv2 >= 2.8.2 | pyexiv2 >= 2.8.2 | ||||||
|  | panoramax_cli >= 1.1.1 | ||||||
|  |  | ||||||
|  | @ -5,3 +5,7 @@ | ||||||
| # register an application at https://www.mapillary.com/dashboard/developers | # register an application at https://www.mapillary.com/dashboard/developers | ||||||
| # read permissions needed, all other fields can be random. copy the client token | # read permissions needed, all other fields can be random. copy the client token | ||||||
| export MAPILLARY_DEV_TOKEN="MLY|blahblah_replace_it" | export MAPILLARY_DEV_TOKEN="MLY|blahblah_replace_it" | ||||||
|  | 
 | ||||||
|  | # Panoramax | ||||||
|  | # copy the token from your profile settings at https://panoramax.openstreetmap.fr/settings | ||||||
|  | export PANORAMAX_DEV_TOKEN="yourtokenhere" | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Matthias
						Matthias