@@ -31,26 +31,27 @@ Mapillary's Python SDK provides interfaces that remove and abstract away many un
3131techniques to output an easy to understand and use GeoJSON format. Currently, all the high level interfaces can
3232be found at ` src/mapillary/interface.py ` . It contains functions such as,
3333
34- - ` get_image_close_to ` -
35- - ` get_image_looking_at ` -
36- - ` get_detections_with_image_id ` -
37- - ` get_detections_with_map_feature_id ` -
38- - ` image_thumbnail ` -
39- - ` images_in_bbox ` -
40- - ` sequences_in_bbox ` -
41- - ` map_feature_points_in_bbox ` -
42- - ` traffic_signs_in_bbox ` -
43- - ` images_in_geojson ` -
44- - ` images_in_shape ` -
45- - ` map_features_in_geojson ` -
46- - ` map_features_in_shape ` -
47- - ` feature_from_key ` -
48- - ` image_from_key ` -
34+ - ` get_image_close_to ` - Function that takes a longitude, latitude as argument and outputs the near images.
35+ - ` get_image_looking_at ` - Function that takes two sets of latitude and longitude, where the 2nd set is the
36+ "looking at" location from 1st set's perspective argument and outputs the near images.
37+ - ` get_detections_with_image_id ` - Extracting all the detections within an image using an image key.
38+ - ` get_detections_with_map_feature_id ` - Extracting all detections made for a map feature key.
39+ - ` image_thumbnail ` - Gets the thumbnails of images from the API.
40+ - ` images_in_bbox ` - Gets a complete list of images with custom filter within a BBox.
41+ - ` sequences_in_bbox ` - Gets a complete list of all sequences of images that satisfy given filters within a BBox.
42+ - ` map_feature_points_in_bbox ` - Extracts map feature points within a bounding box (bbox).
43+ - ` traffic_signs_in_bbox ` - Extracts traffic signs within a bounding box (bbox).
44+ - ` images_in_geojson ` - Extracts all images within a shape.
45+ - ` images_in_shape ` - Extracts all images within a shape or polygon.
46+ - ` map_features_in_geojson ` - Extracts all map features within a GeoJSON's boundaries.
47+ - ` map_features_in_shape ` - Extracts all map features within a shape/polygon.
48+ - ` feature_from_key ` - Gets a map feature for the given key argument.
49+ - ` image_from_key ` - Gets an image for the given key argument.
4950- ` save_locally ` - saving data locally
5051
5152## The What
5253
53- ## Getting Started
54+ ### Getting Started
5455
5556Get started by ** installing the mapillary package** .
5657
@@ -60,26 +61,29 @@ pip install mapillary
6061
6162Or ** try Mapillary immediately** with ** [ Google Colab] ( https://colab.research.google.com/drive/1BPWMP5k7QhXFB6nlWckHC1r54vIR0v2L?usp=sharing ) ** !
6263
63- ## Test Out Interfaces
64+ ### Test Out Interfaces
6465
65- Start by importing ` mapillary.interface `
66+ Start by importing ` mapillary.interface ` as the following,
6667
67- Generate a new Docusaurus site using the ** classic template** :
68+ ``` python
69+ """
70+ On importing the interface
71+ """
6872
69- ``` shell
70- npx @docusaurus/init@latest init my-website classic
71- ```
73+ import mapillary.interface as mly
7274
73- ## Start your site
75+ # And then simply import the desired interface
76+ # For example, like
77+ mly.get_image_looking_at(... )
78+ ```
7479
75- Run the development server:
80+ ### Check out more submodules
7681
77- ``` shell
78- cd my-website
82+ Like ths,
7983
80- npx docusaurus start
84+ ``` python
85+ import mapillary.config as mly_config # Importing desired configurations
86+ import mapillary.controller as mly_controller # Importing desired controllers
87+ import mapillary.models as mly_models # Importing the used models
88+ import mapillary.utils as mly_utils # Importing utility material
8189```
82-
83- Your site starts at ` http://localhost:3000 ` .
84-
85- Open ` docs/intro.md ` and edit some lines: the site ** reloads automatically** and display your changes.
0 commit comments