Kategoriarkiv: Okategoriserade

Google doodles 1998 – 2014

Den senaste i raden av män(niskor) att firas med en doodle på Googles förstasida var Thor Heyerdahl, i går. Jag använde Google Docs screenscraping-funktion, och gendercounter.net, för att kolla könsfördelningen på dem som fått den äran hittills, från starten med Claude Monet 2001. Och faktiskt, i år är fördelningen inte längre lika bedrövlig. Men hur det kunde ta sju år att få med den första kvinnan på världens största webbsida övergår fortfarande mitt förstånd.

Här hänger vi på Nytorps gärde

Det är mycket snack i Kärrtorp nu om förslaget till ny plan för Nytorps gärde. Där ska, enligt planen, byggas fler bostäder och – kanske mer omdiskuterat – nya bilvägar runt dem, som ska skapa ”tydliga gränser mellan privat och offentligt”, som det heter i förslaget. Förslaget bygger på

Själv var jag nyfiken på vilka delar av Gärdet som används mest, och tankade ner ett tusental geotaggade Instagrambilder från området, för att se var de är tagna. Det är egentligen alldeles för få bilder ännu, men Instagram låter mig bara hämta några i taget. Redan syns dock ett band på mitten av Gärdet, längs gångvägen mellan Hammarbyhöjden och Kärrtorp, förbi Nytorpsbadet och utegymmet. Längs det bandet är det inte bara många som går, utan också många som sitter och picknickar, särskilt utmed randen av Gärdet. Den stora klumpen till vänster är Fotbollsplanen.

Jag ska fortsätta tanka ner bilder, tills det går att skapa en mer lätläst heatmap. Kartan kommer förstås fortfarande inte att säga var vi hänger, men väl var vi Instagrammar, för vad det är värt!

Trafikverket* vs JR

Ok, jag vet att den här jämförelsen haltar, både för att vi har mer spår per person i Sverige, och för att vi har mycket mer godstrafik på våra järnvägar, men det är ändå lite frestande: JR East (JR(higashi)日本(nihon)), ena delen av ex-statliga japanska järnvägsbolaget JR, står enligt förseningar och inställda avgångar ut hos dem just nu (höger).

svjp

Just det, den är tom ja.

*Tack @SwedishKiwi

Katarinahissen i Japan, 1898

yomiuri-slussen

I dag berättar DN att Katarinahissen ska räddas. Den nuvarande hissen är från 30-talet, men det fanns en hiss där redan i slutet av 1800-talet. 1898 var japanska Yomiuri shimbun (i dag världens upplagemässigt största dagstidning) i Stockholm och gjorde, vad jag gissar är det första resereportaget från Skandinavien i japansk dagspress. Jag hittade det i deras arkiv för många år sedan, och snubblade för några veckor sedan, av en ren händelse, över kopian jag gjorde då.

I samma reportage (som ingår i en längre serie resereportage från en resa genom Ryssland och Nordeuropa) besöker reportern också Skansen. När jag har tid ska jag skanna in och lägga upp resten av bilderna också. Då ska jag skanna in nästa reportage jag hittat från Sverige också. Det kommer först 1912, i samband med sommar-OS i Stockholm, och har den poetiska rubriken ”Sommar i det nordiska snöriket”, typ (北歐雪國の夏).

Stavningen av ”Sverige” är märklig, det tredje tecknet verkar lite malplacerat. Ska det kanske stå そうゑいでん?

Historical maps for journalistic visualizations

Crossposted from http://jplusplus.se/?p=276

I have been missing a framwork for creating map visualisations that span over many years. The problem, of course, is constantly changing political borders and nations. Me and Jens Finnäs eventually started creating one: Thenmap. While still work in progress and full of bugs, it should now be possible to create simple visualizations using it. And simple visualizations is really the only thing it’s supposed to do; We are not trying to create a tool to cater for all your mapping needs here. Thenmap in intended for journalists, who want to visualize data for their story, one angle at a time.

Technically, the map consists of a single SVG fileA that can be colored with css. Here is the unemployment in EU over that past decade:

And the decolonization of the world:

The above map uses the Robinson projection, by the way. That is a step up from the gravely misleading mercator projection used by the major online mapping services (on Google Maps, Finland seems to be about the same size as MaliB). We can easily add more projections to the project. Here is the same visualization on a Mollweide map:

We use Kartograph.py to render the maps, so any of the 27 projections available there can be added to the project.

The controls can be customised, of course. Here are the participants in the Eurovision Song Contest year by year, with custom controls:

This is a different map of Europe than the last one, by the way, this time including Caucasus, and more of Russia and a slice of Grrenland. The projection is Lambert conformal conic, which is good for showing whole continents at this scale. The unemployment map above, on the other hand, used an orthographic projection.

popup-fiWe have linked every nation and territory to their corresponding WikiData id, to make it easy to automatically fetch stuff like capital city, flag, population, coordinates, etc for each nation. By default, name and flag are shown in the tooltip box when you hover (or touch) a nation. When no WikiData id is available (meaning that there is no article in any Wikipedia edition on it), we create one. By using WikiData, rather than a local database of metadata, we also get translations for most nations to all languages with major Wikipedia editions. Wikipedias generally use the principle of least astonishment when naming articles. This works very well for us, as these are the names that are most likely used in mainstream media. When names are missing, or we are unhappy about the name forms, we can override them with local translations, though. Here is a European map in Finnish: www.thenmap.net?map=europe&mlang=fi

popup-hiAnd a map of Africa in Hindi: www.thenmap.net?map=africa&mlang=hi

30 languagesC are available, but only Swedish and English have full coverage.

For each year, the map will obviously show the world at a certain point in time. By default it will show borders etc as they were at the first of July. This can be changed, though, if you want, say, the March the 8th instead: www.thenmap.net?offset=03-08.

Thenmap offers no zooming or panning or the like. These maps are intended for news and such, where there is one story to be told at a time. In most cases you will then want the map that is best suited to illustrate the story you are telling. You can still add a lot of interactivity to you map, switch between data sets, etc, but this is not Open Street Map or Google Maps. By using static maps we also don’t need to put the visitors web browser to work rendering the maps. Hopefully this will make them usable even in low end smartphones. It also allows for heavy caching, as the same set of svg maps are constantly reused.

How to use it

The easiest way to implement Thenmap is by creating a <div> or <section> element with the id ”thenmap”, and then include the following piece of code:
<script src="//thenmap.net/thenmap.js"></script>
Available parameters are listed in the readme-file.

For more options you have to disable autoinit, and load the script like this:
var mymap = Thenmap.init(element,callback);, where callback is the name of a function to call everytime the map is updated. Then you will have access to a few javascript functions to manipulate the map.

Contact us if you want us to implement Thenmap for you. The code is all on Github if you want to play with it yourself, though we will not have a lot of time to offer support for you.

Roadmap

There is a long list of things that need to be improved or fixed on Thenmap already. These are some that have a higher priority than others:

  • Support for older Internet Explorer versions (<= IE8)
  • Hash pattern for disputed territories looks weird in many browsers
  • Some territorial fixes
  • Better looking control panel
  • Improved performance

Some of the things that should be done, though with less priority:

  • Border going back to 1920
  • More accurate flags and nation titles
  • More maps and projections
  • Shorter loading times
  • Functions for easier plotting data on the map
  • Make it easier to customize tooltip

Please let us know if you try Thenmap out!

Edit: @haxpett at Wikimedia Sweden just pointed me at WikiMaps, a project that will try and collect, georeference and publich old maps. That could be a goldmine for tools such as Thenmap.

A Yes, that means that the maps will not work in old versions of Internet Explorer. We are working on that, though. The intention is to provide vml files for browsers that can not display svg files (i.e. IE8 and earlier).

B Finland is really 338,424 km² large, and Mali 1,240,192 km².

Csv,en,fi,fr,de,es,ru,it,nl,pl,zh,pt,ar,ja,fa,no,he,tr,da,uk,ca,id,hu,vi,ko,et,cs,hi,sr,bg