The code snippet below shows how easy generating GeoJSON to send to the client-side can be.
Friendfeed y Como Usar Friendfeed (via promocionweb20)