Page 1 of 2

Share option

Posted: Wed Mar 03, 2021 1:28 pm
by alexlong
Hi, François and thanks a lot for AlpineQuest.
I have a question and perhaps a suggestion if the answer to the question is "yes".

There is an ability to change providers for sharing through the user settings file:

Code: Select all

map.coordinates.share.provider 	
URL of a mapping website to use in the “Share” action text message. 
The following variables are available:
{$longitude},
{$latitude},
{$zoom} (current zoom level of the map),
{$name} (name of the shared point if any),
{$date} (formatted record date of the point if any),
{$date_time} (formatted record date and time of the point if any),
{$time_ms} (record unix timestamp in milliseconds of the point if any),
{$time_s} (record unix timestamp in seconds of the point if any),
{$olc} (coordinates encoded in the Open Location Code format),
{$geohash} (coordinates encoded in the Geohash format),
{$maidenhead} (coordinates encoded in the Maidenhead Locator System format).

The default URL is “https://google.com/maps/place/{$latitude},{$longitude}”.
To display an OpenStreetMap URL, use “https://www.openstreetmap.org/#map={$zoom}/{$latitude}/{$longitude}”
for Yandex Maps (less details) use “https://yandex.ru/maps/?ll={$longitude},{$latitude}&z={$zoom}&pt={$longitude},{$latitude}”
for Yandex Maps (more details) use “https://yandex.ru/maps/?ll={$longitude}%2C{$latitude}&z=15&mode=whatshere&whatshere%5Bpoint%5D={$longitude}%2C{$latitude}&whatshere%5Bzoom%5D=15”,
for Here Maps use “https://wego.here.com/?map={$latitude},{$longitude},{$zoom}”.
Usually users share with Google by default and possibly they do not guess there are alternative options because these settings are in the user settings list, but not in the application (users need to visit the application page for additional information).

It seems to me that it would be more convenient to make these and other possible settings regular.

Do you think it is time to make these values regular?

Re: Share option

Posted: Sat Mar 06, 2021 11:18 am
by Psyberia-Support
Hi Alex, yes you maybe right.
I'll try to add a way to let the user choose, without having to use an user setting. Like add the choice directly in the "Share" menu.
I'll have a look.

Re: Share option

Posted: Tue Mar 09, 2021 8:15 pm
by alexlong
Hi, François.

Thank you. I think it may be added as an additional option either in the general Settings as a list to choose a single item to share or like add the choice directly in the "Share" menu (as you say) in the kind of a scrolling list. Both options have both pros and cons.
In the first case users quickly share the data that is pre-set in the "Share" settings, but does not have the ability to change the data as quickly. In the second case, on the contrary, users have the ability to quickly change the data from the list, but do not have the ability to quickly share the data.

I would provide a "Share" list with the option to expand further if necessary.

For URLS:

Code: Select all

https://google.com/maps/place/{$latitude},{$longitude}   → Google
https://www.openstreetmap.org/#map={$zoom}/{$latitude}/{$longitude}   → OSM
https://yandex.ru/maps/?ll={$longitude},{$latitude}&z={$zoom}&pt={$longitude},{$latitude}  → Yandex Maps (less details)
or
https://yandex.ru/maps/?ll={$longitude}%2C{$latitude}&z=15&mode=whatshere&whatshere%5Bpoint%5D={$longitude}%2C{$latitude}&whatshere%5Bzoom%5D=15  → Yandex Maps (more details)
https://wego.here.com/?map={$latitude},{$longitude},{$zoom}  → Here Maps
https://osmand.net/go?lat=60.18560144029518&lon=30.659186479045587&z=10  → OSMand  (please compose the correct URL). May be opened both in the application and as a web 
https://map.baidu.com/@11590057.96,4489812.75,5.18z   → Baidu  (please compose the correct URL)
https://opentopomap.org/#map=16/59.72816/30.46936 → Opentopomap (please compose the correct URL)
To be continued....


For coordinates:

Code: Select all

{$longitude},
{$latitude},
{$zoom} (current zoom level of the map),
{$name} (name of the shared point if any),
{$date} (formatted record date of the point if any),
{$date_time} (formatted record date and time of the point if any),
{$time_ms} (record unix timestamp in milliseconds of the point if any),
{$time_s} (record unix timestamp in seconds of the point if any),
{$olc} (coordinates encoded in the Open Location Code format),
{$geohash} (coordinates encoded in the Geohash format),
{$maidenhead} (coordinates encoded in the Maidenhead Locator System format)
to be continued

Re: Share option

Posted: Fri Mar 12, 2021 12:46 pm
by Psyberia-Support
I've published beta version 2.2.8c.r6921.
When you select share, you have a preview of the text that will be shared.
You can tap "Option" to choose the coordinates format and the link added to the text.
The application will remember your choices for the next time, so you don't have to choose the options everytime.

Right now I haven't added more maps, I know baidu is used in China, but currently the application is not available in this country. Osmand is mainly an application (the website doesn't have any interest), if you want to open it you can use the "Open with..." -> Other application item instead of Share.

Re: Share option

Posted: Fri Mar 12, 2021 8:06 pm
by alexlong
Hi, François!
Thank you so much. It works! Even better than I planned.
As far as I understand some user_settings options will be removed from the list?

Re: Share option

Posted: Sat Mar 13, 2021 9:06 am
by Psyberia-Support
Yes in the current beta I've removed those 2 user settings which have been replaced by real settings:

Code: Select all

map.coordinates.share.crs=
map.coordinates.share.provider=
But I already received a request to add back "map.coordinates.share.provider=", so I'll see if I can add it back as a custom item.

Re: Share option

Posted: Sat Mar 13, 2021 10:29 am
by Ingensor
Please tell me, why did you delete this setting?

Code: Select all

"map.coordinates.share.crs"

Re: Share option

Posted: Sat Mar 13, 2021 8:08 pm
by Psyberia-Support
In the last beta (2.2.8c), I have replaced those user settings:
- User setting "map.coordinates.share.crs" by visual setting 1;
- User setting "map.coordinates.share.provider" by visual setting 2.

Image

Re: Share option

Posted: Sun Mar 14, 2021 9:00 am
by Ingensor
I understand, thank you for your explanation...

I would be grateful if you return the option "map.coordinates.share.provider" as a custom link in the list :)

Re: Share option

Posted: Sun Mar 14, 2021 9:11 am
by Psyberia-Support
Yes it will be added in the next update.

Re: Share option

Posted: Sun Mar 14, 2021 10:45 am
by Ingensor
And another question, you could make it so that when using the "map.coordinates.share.provider" option, the user link is used by default, instead of Google as it is now.

This way, many older users not have to change their user_settings.conf

Re: Share option

Posted: Mon Mar 15, 2021 3:39 pm
by Psyberia-Support
The application remembers your last choice, so you'll only have to select "Custom" one time and nothing else.

Re: Share option

Posted: Mon Mar 15, 2021 6:43 pm
by Ingensor
I meant for the "Custom Link" to work by default if the "map.coordinates.share.provider" option is used...

For example for people who use a smart watch with a small screen, where it is problematic to select the desired link in the "share" options.

Re: Share option

Posted: Tue Mar 16, 2021 8:11 am
by Psyberia-Support
Yes I'll try

Re: Share option

Posted: Sun May 02, 2021 10:26 am
by maxi
Hallo. now share link to google maps doesn't work correctly. It opens only in browser, but don't in application google maps. I have experimented with link using multiple devices. Google maps application starts without coordinates.
Is it possible to change link to next view:
https://maps.google.com/?q=43.645862208 ... 5333652496
This link work properly and can be opened in different application (alpinequest, maps.me, Google maps) but suddenly doesn't work in yandex.