![](https://secure.gravatar.com/avatar/c5ae4f9aa0d3a9bd5376e92b322c3e50.jpg?s=120&d=mm&r=g)
On Thu, 4 May 2017, Mojca Miklavec wrote:
On 4 May 2017 at 15:20, Ulrike Fischer
wrote: Am Wed, 3 May 2017 22:12:54 +0100 schrieb DesdeChaves:
For this I must include in my report a gloogle maps image with the path and the distance covered.
[...]
Anybody know a simply way to make this work or this is a too hard task for now.
There is a LaTeX-Package called getmap. http://www.ctan.org/pkg/getmap It's documentation contains also some remark about how to get routing. Perhaps you find something useful in it.
Thank you.
This looks like something worth porting to ConTeXt :) Even if implemented from scratch, the package could be used to borrow the hacks. The syntax is pretty clean (and already relatively "ConTeXt"-ish):
\getmap[file=berlin, mode=gm, language=de, scale=2, 8 xsize=400, ysize=600,...]
All the heavy lifing is done by a lua-script; the sty file is simply calling the lua script with appropriate arguments. So, it should be relatively straightforward to create a wrapper around the script using t-filter. Of course, ideally, since the code is written in lua, there is no need to call the external script. However, some refactoring needs to be done if the script is to used directly from the tex side (the parsing of arguments needs to be separated from actual call to the openmap api). Aditya