The support forum is temporarily read-only. For urgent requests, please email contact[at]psyberia.net

[closed] Open with —> Share suggestion

Any question about the app? Ask it here
Psyberia-Support
Site Admin
Posts: 6408
Joined: Wed Apr 14, 2010 9:41 pm

Re: Open with —> Share suggestion

Post by Psyberia-Support »

Ok I've updated the link, now it should show a pointer.
By the way, I've used a new URL format which seems to work fine:

Code: Select all

https://yandex.com/maps/?ll={$longitude},{$latitude}&z={$zoom}&pt={$longitude},{$latitude}
Do you like AlpineQuest ? Leave a small comment on Google Play !
alexlong
Posts: 660
Joined: Fri Jul 31, 2015 8:06 am
Location: Russia

Re: Open with —> Share suggestion

Post by alexlong »

Hi, François!

I try to share position (clip it) and open a shared link in a browser

The previous version of share is:

Code: Select all

map.coordinates.share_provider=https://yandex.ru/maps/?ll={$longitude}%2C{$latitude}&z=15&mode=whatshere&whatshere%5Bpoint%5D={$longitude}%2C{$latitude}&whatshere%5Bzoom%5D=10
Previous version web RUS
Or if you want to have a look at English page I just substituted ru for com and it looks like this
Previous version web ENG
I can see coordinates, the nearest metro station, I can send a waypoint to any Yandex application, I can make a route (car, public transport, walking) etc. The poiter is RED.
SEE PICTURE Yandex_share-old-.jpg

The new version of share from your link is:

Code: Select all

map.coordinates.share_provider=https://yandex.com/maps/?ll={$longitude},{$latitude}&z={$zoom}&pt={$longitude},{$latitude}
New version web ENG
Please, substitute com for ru in your link
So it should be as:

Code: Select all

map.coordinates.share_provider=https://yandex.ru/maps/?ll={$longitude},{$latitude}&z={$zoom}&pt={$longitude},{$latitude}
New version web RUS
I can see only a pointer on the map nothing more. The pointer is BLUE.
SEE PICTURE Yandex_share-new.jpg

Could you please leave both versions because both are helpful?
Attachments
Yandex_share-old-.jpg
(69.76 KiB) Downloaded 2987 times
Yandex_share-new.jpg
(68.94 KiB) Downloaded 2987 times
alexlong
Posts: 660
Joined: Fri Jul 31, 2015 8:06 am
Location: Russia

Re: Open with —> Share suggestion

Post by alexlong »

Please make it similar as a told you here Yandex pointer

Open with: Other application and choose Yandex (either Yandex Maps application or any browser installed) —> I see a marker
Open with: Yandex Maps —> there is no marker. Please change it as it is in Open with: Other application choose Yandex
Psyberia-Support
Site Admin
Posts: 6408
Joined: Wed Apr 14, 2010 9:41 pm

Re: Open with —> Share suggestion

Post by Psyberia-Support »

Hi again Alex
I start to be more complicated that I wanted here...

To sum up:

- "Share" action. This was only an action to share the GPS coordinates in the text format. I added a simple link to Google Maps following an user request. Now you can also change this Google link using the user setting "map.coordinates.share_provider=[what you want here]".

- "Open with: other application" uses something internal to Android (called an Intent). You cannot do the same thing with a link. It's an internal way in Android to ask all applications that can display a location. If you've the Yandex map installed, then this one should be displayed. I cannot device what the Yandex app will do with the location, either display a marker or do nothing. This has to be changed inside the Yandex app.

- "Open with: Yandex map": this is a shortcut to start the Yandex map, just like the other actions for Google Maps or OSM maps. It wasn't not my mean to put a pointer here, but just allow the user to switch to another map, and display the same area. If you change "Open with: Google map", there is no pointer. Since you requested a pointer, I switched from using "https://yandex.com/maps/?ll={$longitude ... }&z={$zoom}" to "https://yandex.com/maps/?ll={$longitude ... {$latitude}". This way there is no red area, I find it more clean. After, the user is free to select an area, and turn the "What's here" feature in Yandex map. What I can do is replace ".com" with ".ru", but I think that the way everything is now is fine...
Do you like AlpineQuest ? Leave a small comment on Google Play !
alexlong
Posts: 660
Joined: Fri Jul 31, 2015 8:06 am
Location: Russia

Re: Open with —> Share suggestion

Post by alexlong »

Ok, thanks.
alexlong
Posts: 660
Joined: Fri Jul 31, 2015 8:06 am
Location: Russia

Re: Open with —> Share suggestion

Post by alexlong »

I overdid it, sorry. Want to have too much at a time ☺️, my fault.
Psyberia-Support
Site Admin
Posts: 6408
Joined: Wed Apr 14, 2010 9:41 pm

Re: Open with —> Share suggestion

Post by Psyberia-Support »

No it's fine! ;)
What do you think about the sum up, is it ok for you this way? (I already updated yandex.com to yandex.ru for the next update).
Do you like AlpineQuest ? Leave a small comment on Google Play !
alexlong
Posts: 660
Joined: Fri Jul 31, 2015 8:06 am
Location: Russia

Re: Open with —> Share suggestion

Post by alexlong »

Hi, François.

Sorry for troubling but I have found the correct url and right solution for Yandex share action

When you make updates in List of user settings please make two versions

1.

Code: Select all

map.coordinates.share_provider=https://yandex.ru/maps/?ll={$longitude},{$latitude}&z={$zoom}&pt={$longitude},{$latitude}
A blue pointer appears on Yandex Maps Web with no additional info (just as here —> Yandex blue pointer)

2.

Code: Select all

map.coordinates.share_provider=https://yandex.ru/maps/?ll={$longitude}%2C{$latitude}&z=15&mode=whatshere&whatshere%5Bpoint%5D={$longitude}%2C{$latitude}&whatshere%5Bzoom%5D=19
A red pointer appears on Yandex Maps Web with additional info such as pointer coordinates, ability to make a route, to send a marked place to Yandex.Maps and Yandex.Navigator applications as favourites places. One can also see additional information on the Yandex web as nearest metros, and streets etc. (just as here —> Yandex red pointer)

I consider it very important because when I share an AlpineQuest waypoint as coordinates with a link on Yandex Maps, one will open it on desktop PC (or in device browser, it does not really matter) so a person has much more info to operate with shared waypoint and it is very handy.

I spend some time trying to find out the correct link and understood that we used 10 at the end of the link

Code: Select all

url=https://yandex.ru/maps/?ll=30.3317141%2C59.9436639&z=15&mode=whatshere&whatshere%5Bpoint%5D=30.3317141%2C59.9436639&whatshere%5Bzoom%5D=10
It stands for municipal area in Yandex maps.
I noticed that the correct figure should be 19 and it stands for the real pointer name as it is on Yandex maps

Code: Select all

url=https://yandex.ru/maps/?ll=30.3317141%2C59.9436639&z=15&mode=whatshere&whatshere%5Bpoint%5D=30.3317141%2C59.9436639&whatshere%5Bzoom%5D=19

When I substituted 10 for 19 everyting became right on the map.

Please make two versions

In any case on 4pda.ru I will offer both versions.

Thanks
Sorry my for persistence
alexlong
Posts: 660
Joined: Fri Jul 31, 2015 8:06 am
Location: Russia

Re: Open with —> Share suggestion

Post by alexlong »

What do you think about the sum up?
I thing it good. ☺️
Psyberia-Support
Site Admin
Posts: 6408
Joined: Wed Apr 14, 2010 9:41 pm

Re: Open with —> Share suggestion

Post by Psyberia-Support »

Version 2.0.4 is now available.

You can use various user settings to choose your own Yandex Maps URL.
By default, Yandex is:

Code: Select all

​map.coordinates.openwith_provider.yandex=https://yandex.ru/maps/?ll={$longitude},{$latitude}&z={$zoom}&mode=whatshere&whatshere[point]={$longitude},{$latitude}&whatshere[zoom]={$zoom}
By using the "{$zoom}" variable, you can have both behaviors with the same link.
Do you like AlpineQuest ? Leave a small comment on Google Play !
Post Reply