1
  1. I am browsing e.g., http://www.openstreetmap.org/#map=18/54.36341/22.79176
  2. I think "how does this look in Google Maps?"
  3. The best I could find is in the side panel a geo:54.36341,22.79176?z=18 URI, Alas I don't know how to make chromium make this into a maps.google.com URI.

Yes I know there are those 4 in one, 8 in one comparison sites, but assume I am already browsing osm.org and want to jump direct.

Yes I know I should forget about asking OSM to add links to 'competing' services.

asked 04 Feb '16, 09:09

jidanni's gravatar image

jidanni
295203042
accept rate: 0%

edited 04 Feb '16, 11:09

aseerel4c26's gravatar image

aseerel4c26 ♦
32.2k16239552


4 Answers:
5

the easiest way would be to use a bookmarklet (invoked by a toolbar click or keyword entry) which could easily extract the coordinates from the OSM URL and insert them into a google maps URL. If google wasn't the target, I would build one for you. ;-) Oh, wait, here is already what you are looking for: https://wiki.openstreetmap.org/wiki/FR:Bookmarklet_osm-google_maps (from osm to google and vice versa).

permanent link

answered 04 Feb '16, 09:26

aseerel4c26's gravatar image

aseerel4c26 ♦
32.2k16239552
accept rate: 18%

edited 04 Feb '16, 11:12

Thank you but all that is quite erie. Ah! All I want to do is like it says on http://geouri.org/ "Midori web browser supports “geo:” URIs", except the browser is Chromium (on Debian) and the site I wish them to be opened on is maps.google.com.

I have no problem writing Bash shell scripts etc. Somehow I need to connect xgd-open...

(04 Feb '16, 09:47) jidanni

@jidanni: sorry, what is "erie"? By the way: If you want to have your browser support the geo URI link scheme you may want to look for a browser extension, but that was not really your question here.

(04 Feb '16, 09:55) aseerel4c26 ♦
1

The bookmarklet trick is awesome aseerel4c26 ! Now, if it were possible to do the same from within JOSM, that would be really cool.

(Sorry. Did not mean to hijack your thread jidanni)

(04 Feb '16, 10:08) AlaskaDave

Hijack... be my guest. Erie: ugly looking. Anyway all this works fine on Android, where geo: Intents get treated properly...

(04 Feb '16, 10:19) jidanni
2

There are also the mapjumper and OSMify bookmarklets.

(04 Feb '16, 10:39) Vincent de P... ♦

@Vincent de Phily: there are, but mapjumper needs more clicks to use and to setup and osmify replaces embedded google maps, if I understand correctly. Yes, both are related.

(04 Feb '16, 11:11) aseerel4c26 ♦
3

The mapJumper builder website is offline/removed since several weeks or months now, so currently it is of no use.

(05 Feb '16, 07:16) MarkusHD
showing 5 of 7 show 2 more comments
1

There is a Google Chrome extension "Mapjumper" for this: http://dudarev.github.io/mapjumper/

I am currently near at finishing a first version of an equivalent for Firefox. It might take some weeks due to lack of time, though.

permanent link

answered 05 Feb '16, 07:42

MarkusHD's gravatar image

MarkusHD
375410
accept rate: 12%

1

this is not related to the MapJumper which was mentioned above, right?

(05 Feb '16, 09:25) aseerel4c26 ♦
3

Yes, it is unrelated. Same purpose, but different user interface. Merely the name is equal.

(05 Feb '16, 12:31) MarkusHD
0

Although you already answered your question yourself ;) there are various map compare services listed in the OSM wiki. The easiest seems to be the one provided by Geofabrik. Open http://tools.geofabrik.de/mc/ and append the 18/54.36341/22.79176 at the end of the URL, e.g. http://tools.geofabrik.de/mc/#18/54.36341/22.79176.

permanent link

answered 04 Feb '16, 09:18

scai's gravatar image

scai ♦
31.9k20291442
accept rate: 23%

Yes. But I want to "jump to maps.google.com from osm.org".

(04 Feb '16, 09:33) jidanni
1

And I want to jump to a sunny beach from my current location.

(04 Feb '16, 10:22) scai ♦
0

OK I solved it with this one-liner I put in $HOME/bin/xdg-open .

/usr/bin/xdg-open $(echo $@|perl -pwe 's!^geo:([\d.,]+)!https://www.google.com/maps/place/$1/\@$1! && s!\?(z)=([\d.]+)!,$2$1!;')
permanent link

answered 04 Feb '16, 12:02

jidanni's gravatar image

jidanni
295203042
accept rate: 0%

could you please describe what it does? It seems to do something with geo: URIs, right? Update: thank you!

(04 Feb '16, 12:31) aseerel4c26 ♦
2

Yes:

  1. person clicks the "geo:" link in right side Share panel on openstreetmap.org.
  2. His $BROWSER executes "xdg-open geo:...", with our version of xdg-open first on $PATH, which starts with ~/bin:....
  3. Our version rewrites the URL so it will go to Google Maps.
  4. Our version calls the real xdg-open with now a Google Maps URL.
  5. Real xdg-open executes "$BROWSER http://maps.google..."
(04 Feb '16, 14:03) jidanni

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×89
×87
×24

question asked: 04 Feb '16, 09:09

question was seen: 3,733 times

last updated: 05 Feb '16, 14:41

powered by OSQA