New "map.coordinates.openwith_provider"s in user_settings.conf

You can tell us what you like or don't like in AlpineQuest, and what you would like to see in future releases.
DaveM
Posts: 4
Joined: Thu Dec 07, 2017 3:12 am

New "map.coordinates.openwith_provider"s in user_settings.conf

Post by DaveM » Wed Oct 20, 2021 11:28 pm

You have recently added "Bing Maps" and "Apple Plans" to the Open with URL's. These items are not in your documentation for user_settings.conf. It was easy to figure out the corresponding setting name for Bing

Code: Select all

map.coordinates.openwith_provider.bing=
but I can't figure it out for Apple Plans. Could you help?

I also have a request for additional functionality with regard to redefining the open with URLs. I personally don't find any of the predefined URLs useful, so I have them all redefined. The problem is that except for the one that I use all the time, the weather forecast, it is sometimes hard to remember which item points to the URL that I want. It would be great if you could add items to user_settings.conf to redefine the label for each URL as well. So one could add something like the following to user_settings.conf

Code: Select all

map.coordinates.openwith_provider.osm=https://www.trailforks.com/trails/map/?activitytype=1&z={$zoom}.0&lat={$latitude}&lon={$longitude}
map.coordinates.openwith_provider.osm.label=TrailForks
map.coordinates.openwith_provider.yandex=https://forecast.weather.gov/MapClick.php?lon={$longitude}&lat={$latitude}
map.coordinates.openwith_provider.yandex.label=NWS Weather
map.coordinates.openwith_provider.google=http://myserver.redacted.com/cgi-bin/recordlocation?lat={$latitude}&lng={$longitude}&type=mark
map.coordinates.openwith_provider.google.label=Leave Mark
Being able to redefine the icon as well would be an awesome bonus, but just being able to redefine the labels would be enough.

Psyberia-Support
Site Admin
Posts: 4943
Joined: Wed Apr 14, 2010 9:41 pm

Re: New "map.coordinates.openwith_provider"s in user_settings.conf

Post by Psyberia-Support » Thu Oct 21, 2021 8:11 am

Hi Dave,
I think what you need is actually the ability to add custom items (with label and url) instead of redefining existing ones.
The current user settings allows you to tweak a little the urls used for each map providers, but are not meant to be used with another complete url.

So I've added a new user setting that will be available in the next beta update (should be in a few days), that will better suit your needs, here is what you'll have to add:

Code: Select all

map.coordinates.openwith.provider.custom=TrailForks|https://www.trailforks.com/trails/map/?activitytype=1&z={$zoom}.0&lat={$latitude}&lon={$longitude}
map.coordinates.openwith.provider.custom=NWS Weather|https://forecast.weather.gov/MapClick.php?lon={$longitude}&lat={$latitude}
map.coordinates.openwith.provider.custom=Leave Mark|http://myserver.redacted.com/cgi-bin/recordlocation?lat={$latitude}&lng={$longitude}&type=mark
You can add up to 10 custom items.
Hope it will help.

ps: I've updated the user settings help page to include Bing and Apple maps settings.
Do you like AlpineQuest ? Leave a small comment on Google Play !

DaveM
Posts: 4
Joined: Thu Dec 07, 2017 3:12 am

Re: New "map.coordinates.openwith_provider"s in user_settings.conf

Post by DaveM » Fri Oct 22, 2021 1:59 pm

The custom providers will be fantastic. I will not have the opportunity to try it for about a week and a half. I'm going on a trip where I will sometimes be relying on Alpine Quest so proven reliability takes precedence over new features. I look forward to trying it when I get back. By the way, Alpine Quest saved me from some unpleasantness on this trip last year.

As far as redefining the current providers

Code: Select all

 map.coordinates.openwith.provider.apple 
does not seem to work. In addition in the documentation the label is listed as "Apple Maps". In the app (2.2.9) I have an open with item listed as "Apple Plans". I was assuming these are the same.

Psyberia-Support
Site Admin
Posts: 4943
Joined: Wed Apr 14, 2010 9:41 pm

Re: New "map.coordinates.openwith_provider"s in user_settings.conf

Post by Psyberia-Support » Sun Oct 24, 2021 9:25 am

Absolutely there is a problem with the open with Apple Plans user setting (this is indeed a typo in the user settings help page, I've corrected this).
This will be fixed in the next update, until then you can use this setting: "map.coordinates.share.provider.apple="
And don't worry for the testing, it's of course better not to use the beta version is you need a stable version.
Do you like AlpineQuest ? Leave a small comment on Google Play !

Post Reply