-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
727be35
commit 84a0bd4
Showing
3 changed files
with
31 additions
and
4 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
""" | ||
mapillary.controller.image | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
This module implements the business logic | ||
functionalities of the Mapillary Python SDK. For | ||
more information, please check out | ||
https://www.mapillary.com/developer/api-documentation/ | ||
:copyright: (c) 2021 ... | ||
:license: See LICENSE for more details | ||
""" | ||
|
||
# Local imports | ||
from config.api.entities import Entities | ||
|
||
# Client | ||
from models.client import Client | ||
|
||
import json | ||
|
||
def get_imgae_thumbnail(image_id, resolution): | ||
url = Entities.get_image(image_id, [resolution]) | ||
res = json.loads(Client().get(url).content.decode('utf-8')) | ||
# print(res) | ||
return res[resolution] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters