routemodel: Bing Maps Client
Summary: retrieving data from Bing Maps; this includes routing information, elevation changes along the route, and speedlimits along the route.
This page is an overview of the code files under the routemodel
folder in the Strategy repository on GitHub.
Documentation from Bing Maps for their REST API services can be found here:
https://docs.microsoft.com/en-us/bingmaps/rest-services/
See the relevant child pages for each file seen under the routemodel/data_retrieval
folder.
Tests for each file and their respective functions are found in the routemodel/tests
folder. To run these tests, go onto your command line, make sure you can run Python scripts from there (if you use Anaconda, this will mean opening the Anaconda Command Prompt instead of the normal one), change into the strategy/routemodel
directory and run the command pytest
.
Current Architecture and Intended Usage
The diagram below showcases the intended flow of information between files/functions.
Purple arrows signify an automatic import. Orange arrows mean that there are defaults for the given inputs. Blue arrows is an interaction occuring during a function’s execution - here, the Bing Maps request and response occurs within the API Data Getter in the common.py file.