Norwegian traffic messages in Google Maps

Blog,English — Tags: , , , , , — Alexander Nossum (alexanno) | 21 January, 2009 @ 1:49 pm

The popularity of traffic messages visualized in a map is increasing – especially with the advent of GPS enabled devices supporting RDS/TMC. In Norway there are only one or two businesses that provides such messages – although the information has been available for several year (natural language over FM-radio, newer; natural language over XML).

In a response to this NRK now released their traffic messages in RDS/TMC for every device supporting this. When looking at their page I found out that they additionally, actually delivers the same messages georefered with lat/lon and timestamps. So, while having a slightly slow day at the office I decided to prototype a system that retrieves the feed (serverside), parse it, and serves it (or part of it) in JSON and then visualize it in a map.

The solution can be found here. As always the system is not intended to be bulletproof, so be nice! It updates the data every 60 seconds using AJAX/JS, whether that is necessary is another discussion:)

And, yeah, I know P4 has a similar solution, and I ain’t gonna compete nor compare;)

Screenshot of the prototype

Screenshot of the prototype

Split an image of arbitrary size into NxM tiles

Blog,English — Tags: , , , — Alexander Nossum (alexanno) | 22 August, 2008 @ 12:08 pm

For some months ago I came over a website intended to automatically take an image file (<2mb), split it into a desired number of horizontal or vertical cells and give back a pdf containing the cells (http://www.blockposters.com/). This is a great way to make large artful decorations for walls or any other surface. The rasterization makes it ideal to explore what happens to the perception of the image when the space between the cells increases or decreases – very fun and somewhat creative:)

What I found missing was to take a much larger image file (>>2mb) and have it split into cells the same way, but to have it with no margins and in image files (eg. jpeg). The reason was that I thought it would be cool to have a high number of cells (>150) printed on photo paper in standard size (10x13cm?) and to maintain some quality to the picture as well – thus avoiding pixelation on the small prints, but provoking pixelation in the larger aggregated picture.

So, knowing some maths, some programming and a rainy morning in the summer, I sat down and tried to figure out the equations that would do this for me and then implement it – preferably with web-interface.

The result is a very small program designed just for me and intended to run locally by me. However, I believe in sharing knowledge and just about everything else – so the complete source for the software is attached with this post. It is extremely performance intensive – demanding huge amounts of RAM and some processing – but it works somewhat;) I found it fun to indulge in such a problem – model it in mathematics and solve it, although not perfect – but life is an exercise in limit the problem space:)

Sourcecode for MakeTiles

“Show off” example

(later I found that, offcourse, many pursue this idea of altering images, weird huh?. Check out http://www.makeuseof.com/ )

« Previous Page
This work is licensed under a Creative Commons Attribution 3.0 Unported License.
(c) 2010 What's Sound? | powered proudly by WordPress