Compare commits

..

No commits in common. "b43cacea567b135d7feb8da0283b9e4c5d3d4046" and "efe40c10d2f4109991ee2703a0f4695df6ad2bb1" have entirely different histories.

1 changed files with 1 additions and 10 deletions

View File

@ -23,12 +23,6 @@ def parse_args(argv=None):
default=500,
help="Limit of pictures to fetch, max=5000",
)
parser.add_argument(
"--bbox",
type=str,
default=None,
help="Limit to a bounding box, e.g. '-5.5,47.3,-1.2,48.9', use http://bboxfinder.com",
)
global args
args = parser.parse_args(argv)
@ -40,9 +34,8 @@ if __name__ == "__main__":
mly_key = args.access_token
creator_username = args.username
max_img = args.pictures
bbox_filter = f'&bbox={args.bbox}' if args.bbox is not None else ''
url = f"https://graph.mapillary.com/images?access_token={mly_key}&creator_username={creator_username}&limit={max_img}&fields=id,sequence{bbox_filter}"
url = f"https://graph.mapillary.com/images?access_token={mly_key}&creator_username={creator_username}&limit={max_img}&fields=id,sequence"
print(url)
response = requests.get(url)
@ -54,7 +47,5 @@ if __name__ == "__main__":
sequences_ids = [obj["sequence"] for obj in json["data"]]
unique_ids = list(set(sequences_ids))
print(unique_ids)
print("---")
print(" ".join(unique_ids))
else:
print(response)