Map interface for bus routes

Blog,English — Tags: , , , , , , , , , , — Alexander Nossum (alexanno) | 4 June, 2009 @ 3:22 pm

Ever found yourself struggling to figure out the bus routes when you are planning to get from A to B?

Obscure bus stop names are almost a de-facto standard, at least in Norway – and quite often they do not have a name (or any other identifier) at all. Even if you know the bus stop name from where you are going to take the bus and the destination, you don’t always know where these stops are.

In Trondheim a natural language system has been developed called BussTUC (Buss The Understanding Computer) or more commonly “Bus Oracle”. Here you can write, in natural language, a question about bus routes. I.e. “When is the next bus from busStopA to busStopB?” and similar. The answer is quite good, and is correct according to the current routes.

However, the problem occurs when you don’t know the bus stop name – but you know where you want to travel, or approximately where you want to travel.

To better fit this Atle and I developed a prototype of a map interface to BussTUC. In essence it is a map where you can click where you are and where you want to go. The system then finds the nearest bus stops to this and suggest the closest, all represented visually in the map. While using the map interface to input where you want to go, suggestions of relevant query to BussTUC are suggested – and a link to submit the query is provided.

The system currently knows about almost all bus stops provided by Team Trafikk and works quite well.

Extensions to the system are:

  • Enable for mobile devices – primarily location-enabled devices
  • Add the spatial route-data suggested by BussTUC in the map (i.e. draw the actual route)
  • Speed up BussTUC or develop own route suggestion system based solely on spatial information

Suggested improvements (numbered for identification purposes only):

  1. Display all nearest markers regardless of selected (emphasize the one selected) [Thanks to anders]
  2. Enable user to define “near” using circle (or similar + visual representation
  3. On the fly display of near markers when hovering mouse (i.e. indicate what to expect from query)
  4. Enable user to config how many markers to display near a point
  5. Clustering/star-shaping overlapping markers (ClusterMarker)
  6. Visual-magnifier over selected areas (i.e. similar to: Map Magnifier)
  7. Retain simplicity of system, regardless of functionality (i.e. enable configuration)
  8. Release Open Source (CC, Public Domain, limited license?) [Atle, Magnus]

The system is developed in PHP, JavaScript with a PostGIS enabled database. Source code is available by contacting me or Atle. Give it a try and give some feedback!

http://geomatikk.eksplisitt.net/atle/buss/

Screenshot of BussTUC map interface

Screenshot of BussTUC map interface

The system is (unfortunately) not affiliated with Team Trafikk and is a prototype not designed to scale very good.

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

Tracking your christmas packages

Blog,English — Tags: , , , , , — Alexander Nossum (alexanno) | 22 December, 2008 @ 4:22 pm

During christmas time a common activity is to track either your own sent packages or your receiving packages. The postal system in Norway (posten.no) provides a solution for finding the path of a package sent. One can say the system is driven by geographical attributes, however, no map is ever utilized. I found this a bit strange and during a late evening some days ago I set out on the mission to try to prototype such a solution. The solution became a system wrapping the package tracking web-site from posten.no, extracting the geographic location (postal code and place name), geocoding them on-the-fly and visualizing the information in a map with lines indicating the path. The system can be found in the sandbox; package tracking. If you don’t have a package to track you can test with this package; sm128209247no

Snapshot of prototype

Snapshot of prototype

I wonder why they don’t have a solution like this already? Fairly easy to prototype, fairly free-of-charge, easy to scale… What’s the downside? Creativity?

Oh, btw!

Merry Christmas everybody!

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