tumic0 / GPXSee

GPS log file viewer and analyzer with support for GPX, TCX, KML, FIT, IGC, NMEA, SLF, SML, LOC, GPI, GeoJSON and OziExplorer files.
https://www.gpxsee.org
GNU General Public License v3.0
956 stars 130 forks source link

Create a link to Google Streetview based on the Cursor Coordinates #406

Open Blittr opened 2 years ago

Blittr commented 2 years ago

Dear GPXSee team, would it be possible to create a link to Google Streetview based on the cursor coordinates when clicking a certain point on the map? The advantage is that you can easily see via Streetview what that point on the map actually looks like (if available). Because "Show cursor coordinates" is available within GPXSee, creating a link is (I hope) not difficult.

For instance, after clicking on the map at the Banff pedestrian bridge, I will get a link to google streetview based on the coordinates of that point (via right mouse button context menu).

http://maps.google.com/maps?q=&layer=c&cbll=51.172287134280076,-115.56827008724214

Thank you and best regards.

tumic0 commented 2 years ago

Although technically possible, "hard-linking" with some online service like Google street view is out of scope of GPXSee. But you can of course create your own fork with such a feature.

Blittr commented 2 years ago

Hi, thank you for your reply. I did not mean a "hard-linking" to Google Streetview. My intention was to show a window with a link to streetview on which you can click yourself. Without clicking, nothing happens. GPXSee can currently show the coordinates of the cursor, but you cannot use this data. I really think this is an improvement because you can get extra information in relation to your gpx file. Namely: what does the environment of my gpx file look like. A satellite view (possible in GPXSee) is less informative than Streetview.

tumic0 commented 2 years ago

By "hard-linking" I mean that there is hardcoded some URL to a (proprietary) service. Such URLs may change/disappear at any time and make the feature in GPXSee broken. A solution could be some configuration-based menu that would allow you to use any custom action (url, command) with the coordinates based on some "actions files" similar to the map files. Something like:

<action>
    <name>Google street view</name>
    <url>http://maps.google.com/maps?layer=c&amp;cbll=$lon,$lat</url>
</action>

But the question is, if it is worth doing it... I will have a look how much work it would take and if more people are interrested in such feature, I will eventually implement it.

Blittr commented 2 years ago

Thank you, that solution would be very nice :-)

Tux commented 2 years ago

+1, I'd use that too

Blittr commented 2 years ago

Hi Martin, would it be possible to copy the cursor coordinates when right click? Pasting this in Google Street View will also show the landscape of the location. Showing that point of the map is very attractive for investigating the area. For instance: road signs, road surface, the amount of traffic, a view over the landscape. That everything is often impossible to make out from the map only. Thank you and best regards

tumic0 commented 2 years ago

Coordinates copy is already implemented, use SHIFT + left mouse click.

Blittr commented 2 years ago

Thank you Martin! Apologies, I actually see it in the changelog (7.37). Did not read it properly :-)