Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help for not experimented users / add QR Code? #332

Open
EssBee59 opened this issue Aug 26, 2020 · 7 comments
Open

Help for not experimented users / add QR Code? #332

EssBee59 opened this issue Aug 26, 2020 · 7 comments

Comments

@EssBee59
Copy link

EssBee59 commented Aug 26, 2020

Hello,

A long and interesting discussion was the result of my request #329.
To get a better overview I closed #329 and created this new one with hoppefuly a better formulation.

Use cases:

For both use cases, the goal is to help users with limited IT experience (not good knowledge of file systems) to make use of the created tour....
Use case 1: SEND the created tour to friends
Use case 2: SEND the created tour to their own smartphone (or excactly to one of the prefered installed "gpx" compatible app)

RKFLX and NRENNER did a great job and suggested solutions...

Solution for use case 1:

As requested in #299, the LINK of the created tour could be exported (in the clipboard?) by using a new button.
The user can then address their friends via their prefered tool (mail, social media etc..) by sending the link.

The solution is easy to use and open, a soon implementation would be great!

Solution for use case 2:

I think, the "QRCode" solution proposed by RKFLX had the best potential...

==> A second button should be created in the export box of the brouter-web, proposing to expose the download LINK as a "QR Code".
==> The user then scanns the QR Code, a click and the download starts, a further click "opens" the gpx file and the user get from Android/Ios the list of the app supporting gpx.
It have the choice betwen navigation app´s (Osmand, Oruxmaps, LocusMaps..) or a "gpx viewer" or a specialized app (example "Garmin Connect, which will forward the GPX to a navi-device via blue tooth)

As for use case 1, the solution is easy to use and open!

here again the "todo" list create by rkflx:


Open questions and next steps in case the feature is approved and someone is willing to work on it:

a- Design and implement UI (Show as QR code vs. download in the export box)
b- Find and integrate QR code generator
c- Investigate and fix issues with long and complex URLs and mimetypes in some QR code scanners (upstream bug fixes + workaround in BRouter-Web for non-free apps)
d- Find a way to optionally trigger the app chooser directly
e- How to handle custom profiles? Show a warning or disable the feature?
f- What should happen if the URL is so long the QR code gets too large?

Related issues:


I could start first tests on my local Windows installation, the current results are:

a- open (I just replaced the function download in the "Export.js" module (function "_export"), I think the open workload is limited
b- the use of "qrcode.min.js" was OK (download with "yarn add qrcode.min.js or from Internet)
c- issue #109 as example were solved with a simple "replace" | with %7C
d- The app chooser: use this app once or allways is generally possible (I prefer to keep open and choose an app every time!)
e- "unexperienced users" will probably never change anything in the profiles? but I think, the download with a custom_profile is today possible?
f- I tested succesfully a URL of 1957 bytes (result of a 800 km track upload with reverse routing + adding a lot of nogo´s..)
(the URL max. size is indeed a challenge, 2 kb is probably a limit)

I further created a small (Android only!) app, which scanns the QRCode, downloads the GPX and open it in 1 step...
(+ instruction to use)

If the feature is approved, I put my code as attachement.
(it documents the change in Export.js, the html page should be installed in the "brouter-web" directory or where it can be loaded by the web server)
Sorry, I am not expert with github, hope someone will continue the tests and developement

[edit: related issues formatting]

@EssBee59
Copy link
Author

EssBee59 commented Aug 26, 2020

@nrenner
Copy link
Owner

nrenner commented Aug 31, 2020

Now that you're suggesting two specific solutions, these should each have their own issue with a title that reflects the suggested solution.

So I would suggest to move the sharing with friends case into a separate issue and rename this one to the title bagage suggested (or something else with "QR code" in it).

Regarding the sharing with friends case, I'm still not convinced that sharing the download link is a good idea.

@EssBee59
Copy link
Author

EssBee59 commented Aug 31, 2020 via email

@EssBee59 EssBee59 changed the title Help for not experimented users Help for not experimented users / add QR Code? Sep 13, 2020
@EssBee59
Copy link
Author

EssBee59 commented Sep 13, 2020

CHANGE:
I wrote above ...

Solution for use case 1:
As requested in #299, the LINK of the created tour could be exported (in the clipboard?) by using a new button.
The user can then address their friends via their prefered tool (mail, social media etc..) by sending the link.


BUT, after a examination I think, exchanging a URL is not secured. I would prefer an other solution (ex. sending the gpx file in an easy way)

@EssBee59
Copy link
Author

Hello,
As explained above, I think that sending GPX files is better than sending Links...

Using QRCode seems a solution for "use case 2" as described above....

But, why not to use the same solution for "use case 1" ?
Yes, it is a detour to transfer the GPX first to the smartphone, and to send the file from the smartphone via mail or messaging system to friends...
...but the android platform offers more possibilities as Windows!
Based on the "QRCode" solution above, I added a new feature on my "Brouter-scann" app:

The features are now:

  • Scann the QRCode provided by the brouter-web
  • Download the GPX file
  • Initiate 1 of the 2 possible GPX processing:
    1- process the GPX with local APP (Osmand, Oruxmaps, GPX viewer, garmin connect...)
    or
    2- Send / forwoard the GPX file with one of the installed "Send capable" app (Whatsapp, Telegram, Mail apps, ..)

If some one want to test the function I installed a prototype on
http://brouter.de/essbee/#map=11/49.9574/8.5755/standard&lonlats=8.574189,50.003326;8.655909,49.99494

(to download the app see link in the HTML page displaying the QRCode or use
http://brouter.de/essbee/Brouter-scann.apk )

@EssBee59
Copy link
Author

Hello,

In the prototype I added a second icon "generate QRCode" in the "Export".
The app Brouter-scann was redisigned:
Scanning is now better (no problem with URL of 2 k bytes), and better overview for users...

The prototype is for me well running now, I can upload the sources by need ...
Regards

@EssBee59
Copy link
Author

EssBee59 commented Jan 7, 2021

Status:

Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants