Pages

Thursday, September 23, 2010

Trying gmap link type


Sebastian rose shows how to use google maps or open maps as link types.



Let see how it renders in a blog?



My Pub





Subject: Yet another way to use maps --- the light way
From: Sebastian Rose <sebastian_rose@gmx.de>
Date: Thu, 23 Sep 2010 10:17:14 +0200

Hi,

there is a light and easy way to use google and openstreetmap.org maps
if you define them as a custom link type:

(setq org-link-abbrev-alist
'(("gmap"
. "http://maps.google.com/maps?q=%s")
("omap"
. "http://nominatim.openstreetmap.org/search?q=%s&polygon=1")))

Now
[[gmap:Falkenstr 10, Hannover, Germany][Falkenstraße]]

and
[[omap:Falkenstr 10, Hannover, Germany]]

show a map in your browser. LaTeX and HTML export works out the box
with the advantage, that this export can legally be published on the
internet without any additional action (API license key). Even on
commercial sites, as it's just a link to google. OSM is no problem
anyway.

This way it's possible to show a certain place on earth, but not a track
or route.

There's a (known) bug in the LaTeX eporter:

[[Falkenstraße 10, Hannover, Germany]]

will _not_ work, because the german Umlaut will be distorted somehow
(unless fixed already....)

Sebastian




--
My Emacs Files At GitHub

No comments:

Post a Comment