Geo QR Code containing a KML ULR in teh q parameter

330 views
Skip to first unread message

AFFIRMA

unread,
Aug 7, 2010, 7:55:59 AM8/7/10
to zxing
Hello,

I have a Geo URL that contains a KML URL in the q parameter, e.g.:

geo:0,0?q=http://www.scribblemaps.com/getkml.aspx?
id=aKCPZWX32k&g=AEDFD10

When accessing this URL via a webpage link on a mobile browser on the
Android, the Google Maps app on the Android wil be invoked and display
the KML data (e.g. the markers) at the given coordinates.

Now, I am trying to achieve the same thing but with a Geo QR code
generated with ZXing's QR Code Generator and scanned with the
BarcodeScanner app which is available on the Android and is based on
ZXing. When asked to display the scanned map, BarcodeScanner will
invoke Google Maps at the given coordinates but the KML data won't
get displayed at all.

Is KML URL as value of the q param supported in a Geo QR code at all?
Could it be a problem with URL encoding? The KLM URL is encoded by the
QR Code generator:

http://chart.apis.google.com/chart?cht=qr&chs=350x350&chl=geo%3A0%2C0%3Fq%3Dhttp%3A%2F%2Fwww.scribblemaps.com%2Fgetkml.aspx%3Fid%3DaKCPZWX32k%2526g%3DAEDFD10

Even Google Maps on the web (http://maps.google.com/maps?q=) won't
load the KML URL if encoded.

Any comments much appreciated,

Adal Fraile

Sean Owen

unread,
Aug 7, 2010, 9:14:17 AM8/7/10
to zxing
The query portion is dropped at the moment, mostly because I didn't
know there was any use for it. But I could change that pretty easily.
It would be in a later release.

On Aug 7, 5:55 am, AFFIRMA <affirma.extra...@gmail.com> wrote:
> Hello,
>
> I have a Geo URL that contains a KML URL in the q parameter, e.g.:
>
> geo:0,0?q=http://www.scribblemaps.com/getkml.aspx?
> id=aKCPZWX32k&g=AEDFD10
>
> When accessing this URL via a webpage link on a mobile browser on the
> Android, the Google Maps app on the Android wil be invoked and display
> the KML data (e.g. the markers) at the given coordinates.
>
> Now, I am trying to achieve the same thing but with a Geo QR code
> generated with ZXing's QR Code Generator and scanned with the
> BarcodeScanner app which is available on the Android and is based on
> ZXing. When asked to display the scanned map, BarcodeScanner will
> invoke  Google Maps at the given coordinates but the KML data won't
> get displayed at all.
>
> Is KML URL as value of the q param supported in a Geo QR code at all?
> Could it be a problem with URL encoding? The KLM URL is encoded by the
> QR Code generator:
>
> http://chart.apis.google.com/chart?cht=qr&chs=350x350&chl=geo%3A0%2C0...

AFFIRMA_extranet

unread,
Aug 7, 2010, 9:51:35 AM8/7/10
to zx...@googlegroups.com
Hello,

Thank you for the reply and quick action.

Is it the BarcodeScanner or the XZing QR Code Generator dropping the query portion? Or both?

I am not sure there is much use for it out there at the moment but the problem is that most map solution providers haven't yet made their interfaces compatible with mobile devices but the majority do support KML data export/import. So at the moment the best option to support mobile users is to have the KML data loaded into the Google Maps app via the q param. If this can be realized by means of a regular Google Maps URL or natively by a Geo URL, then it would make sense for a Geo QR code to allow it as well.

Regards,

Adal Fraile
--
AFFIRMA
Delftseplein 36 K
3013 AA Rotterdam
The Netherlands
+31 (0) 614 500 243
in...@affirma.nu
www.affirma.nu

--
Dit e-mailbericht is alleen bestemd voor de geadresseerde(n).
Gebruik door anderen is niet toegestaan. Indien u niet de
geadresseerde(n) bent wordt u verzocht de verzender hiervan
op de hoogte te stellen en het bericht te verwijderen.
Aan dit mailbericht kunnen geen rechten ontleend worden.
No rights can be derived from the contents of this E-mail message.

Sean Owen

unread,
Aug 8, 2010, 9:22:49 AM8/8/10
to zxing
Just Barcode Scanner.
This is a fine application, and I've already made the change.
If you're curious and can build Android apps, you can get the latest
code from SVN and build a new copy of the app and try it. But I tested
it and it does work.

On Aug 7, 7:51 am, AFFIRMA_extranet <affirma.extra...@gmail.com>
wrote:
> i...@affirma.nuwww.affirma.nu
Reply all
Reply to author
Forward
0 new messages