Posts tagged maps

Selected (belated, extended) Saturday Links

The past two weeks haven’t really left time to compile my selected links, though there have been many. A few days at SxSWi (on which more, later) followed by travelling with the family and the inevitable work backlog moved blogging way down the priority list. So here’s a mammoth selection to get me caught up. Particularly interesting has been the discussion around the future of newspapers (represented here by Clay Shirky, Steven Johnson and Russell Davies), which seem to have finally pushed beyond “how t ind a good business model for papers” to looking at where the real value for society lies and how we can preserve and extend that in a changing landscape.

Auto Center and Zoom with YM4R

When I blogged last month about abstracting mapping with YM4R I commented:

What I’ve not yet discovered (and may not be implemented) is a way to automatically center and zoom a map. It would be very nice to be able to add a batch of points to a map and have the plugin automatically work out their mid-point. Maybe I need to work on that a little…

What I was missing was the center_zoom_on_bounds_init method. There are various ways to interact with it, but I’ve chosen:

sorted_latitudes = locations.collect(&:latitude).compact.sort
sorted_longitudes = locations.collect(&:longitude).compact.sort
@map.center_zoom_on_bounds_init([
  [sorted_latitudes.first, sorted_longitudes.first], 
  [sorted_latitudes.last, sorted_longitudes.last]])

That mostly replaces the call to

@map.center_zoom_init([latitude, longitude], 14)

that I was previously using, though I’ve actually kept that around if there’s only one point as I was finding Google Maps’ maximum zoom didn’t show quite enough context for my tastes.

While it would be nice if the plugin had a method that performed the calculations based on the points you’ve fed in, it looks like the current implementation stores the points as javascript strings, so that’s not really an option. But with only three lines of code involved, this is a nice simple way to get the desired effect.

Flickr geotagging

Back from Greenbelt last night, I spent some time this morning trying out flickr‘s new support for ‘geotagging’ by placing all my photos on a map.

The interface is nice and hopefully as the API is updated and more uses for the geodata emerge, more and more users will geotag their photos. I’m imagining a map of the Greenbelt site that lets visitors see photos based on when and where on the site they were taken, opening up all sorts of navigational possibilities.

Of course, for that imagining to become reality flickr will need much, much better UK maps. With the current maps I couldn’t even find the racecourse accurately, and Jonny, Drew and I seem to have picked slightly different spots.

Perhaps I need to find some time to work on something that uses the official festival map? In the meantime, check out the 2000 or so photos with the greenbelt2006 tag or the official festival photos.

Mapufacture

One of the projects demonstrated by Andy Turner at BarCamp Grand Rapids was Mapufacture. Developed by Andy, with Guilhem Vellut and Mikel Maron, the site functions as an RSS aggregator with a difference. As well as pulling in the latest content from feeds, it also extracts GeoRSS data from those feeds and plots the results on a google map. You can read an announcement here.

Mapufacture is one of a number of apps that are demonstrating one of the key ways that I hope the web is going to move on from the ‘Web 2.0′ phenomenon, showing how open data can begin to be leveraged using tools designed for average users. Open APIs are all well and good, but it’s only as their potential is opened up to non-traditional users that I think we’ll really begin to see the potential.

The first generation of mashups, created by coders, usually for coders, are an important testing ground and serve to show people the power of open data. But once it becomes easy for people to realise their own ideas of how to combine data we suddenly have a much larger population of innovators.

Aside from Ning—which, with its emphasis on “apps,” may appear a bit heavier than most people think they need—there aren’t many examples in the wild that do more than aggregate RSS in various ways and/or plot data on maps. But the more advanced tools can’t be far off, can they?