Bug 350474 - would like to have command line option to make geo-uri also set a bookmark
Summary: would like to have command line option to make geo-uri also set a bookmark
Status: REPORTED
Alias: None
Product: marble
Classification: Applications
Component: general (show other bugs)
Version: 1.8 (KDE 4.13)
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: marble-bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-22 03:18 UTC by Niels Elgaard
Modified: 2015-07-25 19:00 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Niels Elgaard 2015-07-22 03:18:30 UTC
I would like to use e.g. Wikivoyage offline.

Kiwix can use WV offline, and when you click on a POI it can call a program with a geo-uri as argument. On Android this works with osmand.

On Linux I would like to use Marble. Marble has a geo-uri CL argument. But when Marble opens it is difficult to see exactly where the POI was.

It is possible to set bookmarks in Marble. If you could set a bookmark from the commandline, it would be great. E.g., 
marble --geo-uri-bookmark geo:055.60538,037.28717
Or 
marble --geo-uri geo:055.60538,037.28717 --bookmark

Reproducible: Always
Comment 1 Dennis Nienhüser 2015-07-22 17:26:32 UTC
Thanks for the suggestion. Can you please clarify whether you want
A) the place pointed to with geo-uri to become better visible after opening
or
B) the ability to easily create bookmarks from outside

I'm asking because A) is more a rendering improvement, while B) is a tooling question (e.g. could be done by a separate tool, or by Marble in a headless mode, or by using Marble's DBus interface)
Comment 2 Dennis Nienhüser 2015-07-25 04:58:57 UTC
Please reopen when commenting, thanks.
Comment 3 Niels Elgaard 2015-07-25 19:00:55 UTC
Yes, maybe it should be done as a separate tool.
I just want to be able to click on geo link, have it open in marble, with a marker, so I can see precisely where the POI is.

I looked into using qdbus:

==
#!/bin/bash
geo=${1#geo:}
lon=${geo%,*}
lat=${geo#*,}
marble_pid="$(pidof marble)"
if [ ${marble_pid}x == x ]; then
    marble&
    marble_pid=$!
fi
qdbus org.kde.marble-${marble_pid} /MarbleWidget org.kde.MarbleWidget.setShowPlaces true
alias MCALL='qdbus org.kde.marble-${marble_pid} /MarbleWidget'
qdbus org.kde.marble-${marble_pid} /MarbleWidget org.kde.MarbleWidget.centerOn "$lat" "$lon"
qdbus org.kde.marble-${marble_pid} /MarbleWidget org.kde.MarbleWidget.setShowCrosshairs true
# would like to do something like:
qdbus org.kde.marble-${marble_pid} /MarbleWidget addPlaceMarkData ...
# but not accessible from qdbus
==

This would have the advantage that multiple POI's could be opened, e.g., to show all restaurants in ca city.