Playing with the Google API — part 2
A short status update:
Ⅰ have been playing quite a bit with that „other“ webpage Rhein-Neckar-Tango, adding somne nifty google maps as well as embedding google calendar data inside the interactive map-bubbles. Fun and hard work for someone as unfamiliar with PHP and JavaScript as Ⅰ am. Long live the web and it’s countless samples, articles and forums/usenet/googlegroups.
A short resumé what worked and what did not:
- getting GoogleMaps to work is a pain, unless you use a nice php API like the GoogleMapAPI. It may be dated from 2005 (?) but it works like a charm
- Adding my locations via a MySQL database which stores stuff like lat and lon, as well as other meta data like a pretty formatted name string, links and other stuff that Ⅰ like to use on the web page — and you have one huge power horse working. This is real fun!
- But Ⅰ also wanted to display event dates within gmap. And since all my event data is stored in google calendar, more power was in reach, but not quite. Using google’s ZendApi for gcal was not something Ⅰ had much luck with.
- It started with the fact that Ⅰ needed to use cUrl instead of socket SSL to get the gcal data — requiring some hacking of the Zend stuff. Not much documentation at google, but more via google
- Another great turn off: the Zend stuff might be useful or powerful, but the documentation is not my kind of tech literature.
- Solution use the API from the URL side. Queries and other options are awesome. And what gcal does: it returns an ATOM feed. Perfect, not?
- It started with the fact that Ⅰ needed to use cUrl instead of socket SSL to get the gcal data — requiring some hacking of the Zend stuff. Not much documentation at google, but more via google
- Ah, the simplicity of MagpieRSS, built into WordPress. It could have saved my day, but no:
- The version in WordPress is outdated.
- The available current version of MagpieRSS is also outdated — it doesn’t support all the tags in ATOM-gcal-feeds. Luckily someone offers a hack out there, just search for „MagpieRSS enclosures“. Still, no way to get this stuff running and especially parsing the start dates from gcal events. Speaking of which: it is great that gcal treats recurring events in a special way, but if you don’t pay attention you will never see a start date for those events!
- Solution: SimplePie. Like a charm. Just don’t take every bit of sample code in the documentation for pure truth…
So far it has taken me quite some time, was much fun and more is to come…
Related posts:
- Playing with the GoogleMaps API You all know google and its wonderful GoogleMaps. There are...
- Google analytics plugin, modified Ⅰ am using the $dt‑>blog(); » Google analytics plugin here...
- Getting Google\’s Firefox Bookmark Sync to Work This article sounds helpful. But now that Ⅰ have looked...
- Interweb connectivity through ping‑/trackback – part 2 Ⅰ recently posted a little request to the void out...
- Redesign – Part 1 As you may have noticed Ⅰ am redesigning the site...
Ähnliche Artikel bereitgestellt von Yet Another Related Posts Plugin.
Recent Comments