QR Code generation

For some time now, most people here in Belgium are beginning to notice the new bar code thing that is popping up all over the place… I’m talking about QR codes!
They are not difficult to spot, because of there special resemblance. But it’s not the fact that they are more advanced in resemblance that makes them useful 🙂 It’s the fact that they can contain data value and data metadata!!

In other words not every QR code represents the same thing… you can have it represent:

  • Text
  • Website URL
  • Telephone Number
  • SMS Message
  • Email Address
  • Email Message
  • Contact Details (VCARD)
  • Event (VCALENDAR)
  • Google Maps Location
  • Social Media ( like a facebook profile )

And accordingly to the content type your mobile phone or computer will perform the needed action to represent the data value correctly!

Now most people don’t know exactly how to use these QR Codes, let alone how to generate them… because of this you see service website like this one popping up all over the place.
But the funny thing is, everybody can get these QR Codes for free from a very nice online service! It’s called Google Chart API.
We are currently using it in a small ASP.Net MVC application at our company and we are using it to get Google maps location data represented through a QR Code.

The only thing you need to do is read the instructions up on the Google Chart website here!
You just have to ‘create’ the correct http request url and when ‘executed’ you’ll get back an image.
If you use it correctly you can for instance represent longitude-latitude coördinates on Goolge maps by using following code:


This will give you following QR Code, just try to scan it with your iPhone or Android smartphone 🙂