Updates from July, 2008

  • Googles Kapital

    Andi 20:26 on July 18, 2008 | 0 Permalink | Reply

    Weder Yahoo noch Microsoft sind besessen von dem, was Google macht: “organizing the world’s information”. Und dann wird mit Stühlen geworfen und rumgeschrien (Steve Ballmer) – kein Wunder dass Google keiner schlägt. Denn am Ende geht es immer um Schnellzugriff auf Information – eine Platt form dafür zu bauen finden fast alle Menschen im Gegensatz zu den Informationen selbst langweilend – und genau das ist Googles Kapital.

    Oder?

     
  • Adapting a Polyline Encoder to PHP

    Andi 10:22 on March 16, 2008 | 4 Permalink | Reply

    For a project I need encoded geographical polylines in Google Maps. A geographical polyline can be used to show a route or an area on a map. A polyline is made of several geographical points. Each point is composed of latitude and longitude. Example for a polyline:

    [
    
      // point
      {
        // latitude
        Latitude: 49.75121628642191,
    
        // longitude
        Longitude: 6.6281890869140625
      },
    
      {
        Latitude: 49.76252796566851,
        Longitude: 6.633853912353516
      },
    
      {
        Latitude: 49.757537844205025,
        Longitude: 6.649990081787109
      },
    
      {
        Latitude: 49.749441665946,
        Longitude: 6.642951965332031
      }
    ]
    

    If you load a big bunch of points from your server, this can take a while. The better solution is to encode them to binary format. In a forum I found a dead link to an Google Maps’ encoding algorithm coded in PHP ;(, so I found one implemented in JS and adapted it to PHP. You must take care of one thing: Replacing the JavaScript function String.fromCharCode() by PHP’s chr() will not work, because it does not support unicode. On php.net I found unichar(), which considers unicode. The client side encoder can be tested here. Download the ZIP which includes a PHP class and the whole thing in JavaScript: polyline.zip

     
  • Google feiert Lego

    Andi 13:40 on January 28, 2008 | 0 Permalink | Reply

    (German) Google zeigt heute, dass Lego Geburtstag hat – mit einem Google Doodle:

     
c
compose new post
j
next post/next comment
k
previous post/previous comment
r
reply
e
edit
o
show/hide comments
t
go to top
esc
cancel