mohanadarafe / GuideMe

SOEN 390 | Winter 2020 | Mini Capstone
7 stars 5 forks source link

US29 - As a user, I would like to show paths optimized for access by students with disabilities + Initial Floor in Indoor Maps selected #223

Closed mohanadarafe closed 4 years ago

mohanadarafe commented 4 years ago

Content of PR

In the following pull request, you will find two main features.

Feature 1: US29 - As a user, I would like to show paths optimized for access by students with disabilities.

Now, the directions for different floors is modified. First, you will notice that the bottom menu of the indoor map connects to the preference menu. If mobility reduced is selected on YES, the user is guided to the elevator. But, if it is selected on NO, the user will be guided to the closest stairs (or elevator if it's closer!).

Below is a preview of the scenario: ezgif-3-a59d1cdf2099

Feature 2: Indoor Map selects the floor they journey starts from

I know, I took the GIF above prior to implementing this. But, rest assured, for any journey you take, the indoor map will detect where it should start & set the initial floor by itself!

Todo

Something we can do is add the "next step" arrow as in outdoor directions but inside. So, if you go from H811 to H520, the next arrow will go to floor 5.

Before reviewing the PR

You will see a lot of mobility={mobility} at random places. We are passing it down from a high level to lower level following this structure.

Untitled Diagram (2)