After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 753654 - getting latitude - longtitude of a point
getting latitude - longtitude of a point
Status: RESOLVED FIXED
Product: gnome-maps
Classification: Applications
Component: map view
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: gnome-maps-maint
gnome-maps-maint
Depends on:
Blocks:
 
 
Reported: 2015-08-15 14:21 UTC by zaxebo
Modified: 2015-08-17 16:48 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description zaxebo 2015-08-15 14:21:58 UTC
we should be able to right click a point in map-> context menu->Show Co-ordinates 
Then it will show the Latitude and longtitude of that exact point in Decimal format and Degree-Minutes-Seconds format
Comment 1 Jonas Danielsson 2015-08-15 20:47:13 UTC
Hi!

Thanks for the idea! When would one use this?

Would the use-case be solved for instance by having a "Copy URI" instead? That would copy a geouri:: to the clipboard?
Comment 2 zaxebo 2015-08-16 03:16:48 UTC
rather, geouri will be a far better option. I will be happy with that.

ADDITIONAL SUB-REQUEST for enhancement: 
   Please also implement gnome-maps->"open geouri" menuitem also
           say, i copy that geouri into gedit(or libreoffice calc) and saved that file containing a list of geouri.
           Now later someday, i copied a particular geouri from the saved file in gedit, and THEN pasted it back into gnome-maps-> "open geouri" menu-item. Then gnome-maps should goto that point directly.
Comment 3 zaxebo 2015-08-16 03:20:10 UTC
Now coming to the use cases for "Copy geouri" menuitem in mouse context menu:

Use case 1) easy portability of a point across Geo applications:
 I want to have latitude and lontitude of some point which I can copy and paste it to KDE marble or google earth or JOSM, and i can navigate there. Similarly I want to copy a particular  lat,long from KDE marble and paste it into (say) "gnome-maps->open geouri menuitem" of GNOME maps, then it should be able to goto that point straightway. 
So that if I am not able to get desired analysis/editing in GNOME-maps, i can atleast instantly  switch to other 

--------------------------------------------

Use case 2) Additional sub-request for enhancement in comment 2 (https://bugzilla.gnome.org/show_bug.cgi?id=753654#c2 ) is itself an use-case:

I am sitting on a public computer,library computer or a friend laptop. I am navigating through GNOME-maps and saved some geouri. I do not want make bookmarks there. I have copied lots of geouri into gedit/libreoffice calc and later i take this file to my home using usb pen drive. And then at home , i just paste those into gnome-maps and get my desired locations

---------------------------------------------

Use case 3) when analyzing a zigzag shaped lake, I may not want to bookmark/put Point of interest marker on each point of it. I may not want to save that point permanently. 

(say)I just want geouri temporarily, for some temporary analysis using my external geo-calculation script in python. 

If that point does not workout, then i will again select another point in lake from gnome-maps and copy its geo-uri and try my external python script on it. 

This time if it works out as per my desired analysis, then only I want to put a bookmark/POI point on it later. Hence , for temporary non-batchmode analysis i will try on many points geouri ephemerally, before putting any actual bookmark on it
Comment 4 Jonas Danielsson 2015-08-16 11:08:35 UTC
Thanks!

There is already support for entering "latitude, longitude" into the search bar and pressing enter. It will take you to the bug.

I have also just now added support for entering Geo URI in the searchbar for the same effect. Also right click on a point on the map and selecting "Copy Geo URI".

Does this satisfy your use case?
Comment 5 Jonas Danielsson 2015-08-16 11:10:20 UTC
See cast of the functionality here:
https://www.youtube.com/watch?v=glqqh4syKmw&feature=youtu.be
Comment 6 zaxebo 2015-08-16 13:14:12 UTC
Thanks.
You have already done it perfectly. 

============

Adding zoom-level parameter:
adding zoom level to the geouri as parameter, will make it even more appropriate in real life. For example:
   geo:50.08818f,14.42021f?z=11
Because , then "z=11" passed as zoom parameter to the geouri 
(refer= http://stackoverflow.com/questions/12422575/how-to-open-google-maps-without-other-apps-that-use-the-geo-scheme-being-opene )

pasting    geo:50.08818f,14.42021f?z=11   in the address bar  will take the map to that point "at the desired zoom level of gnome-maps" atonce.
Comment 7 zaxebo 2015-08-16 13:25:23 UTC
I do not insist on the above(as metnioend in comment 6) format of zoom "syntax" only:
geo:50.08818,14.42021?z=11

I suggest implementation of some method of copy and pasting rememberence of either "zoom level" or "altitude" in whatever appropriate "syntax", you may think appropriate as per the geouri or in other softwares. It may be: 
geo:50.08818,14.42021,z=11
or whatever

But I just wish "some syntax" for copy the geouri and getting back the same result (same zoom/altitude) later when i paste it into address bar
Comment 8 Jonas Danielsson 2015-08-17 11:37:47 UTC
I am not sure about the zoom part, it is not an official part of Geo URI right?
We might want to add the extension, maybe you could file a bug against geocode-glib? That is the library we use to parse geoUri:s atm.

Thanks!
Comment 9 Zeeshan Ali 2015-08-17 11:44:58 UTC
(In reply to Jonas Danielsson from comment #4)
> Thanks!
> 
> There is already support for entering "latitude, longitude" into the search
> bar and pressing enter. It will take you to the bug.

I hope not. :) I think you meant to write "location" not "bug".

> I have also just now added support for entering Geo URI in the searchbar for
> the same effect. Also right click on a point on the map and selecting "Copy
> Geo URI".

Awesome! I'd go with a more user friendly string, e.g "Copy Location". User doesn't need to know that it's a URL or what a Geo URL means. From their POV, it's just a location format.
Comment 10 Jonas Danielsson 2015-08-17 12:07:18 UTC
(In reply to Zeeshan Ali (Khattak) from comment #9)

> 
> Awesome! I'd go with a more user friendly string, e.g "Copy Location". User
> doesn't need to know that it's a URL or what a Geo URL means. From their
> POV, it's just a location format.

Thanks! Done.
Comment 11 zaxebo 2015-08-17 16:48:32 UTC
@Jonas:
agreed. I will try to put request with geocode-glib or whoever is appropriate, for this zoom thing.

Hence, I am marking "this bug" as resolved-fixed.

----
I wish someday "gnome-maps" may even surpass "KDE Marble". 

=================
@Jonas:
But I will really acknowledge - (1) in the fast prompt way you solved this feature request (2) the very clear and polite way this interaction went . It was really an awesome experience.  Thanks. I am sure this gnome-maps baby is going to go great miles in hands of parents like you, . You people are just plain awesome. :-)