Martin Atkins (mart) wrote in apparentlymart,
Martin Atkins

Perl interface to Google Static Maps API

A bunch of times now I've written code that embeds maps from Google's Static Maps API. While it's a pretty simple API, there's a bunch of of fiddly string formats you need to get right and a few little inconsistencies that make it hard to remember what to do without studying the docs.

After re-implementing a map URL generator for the nth time I decided to make a library out of it. The result is Geo::Google::StaticMaps, which basically just transforms a map definition given as a bunch of nested hashes and arrays into a Static Maps API URL. It ought to support everything that the Static Maps API itself currently supports. If anything's missing/broken, please let me know. I'm now using it to produce the map on Where's Martin?.


  • Moved to TypePad is now hosted on TypePad rather than LiveJournal. All of the old content remains over here in LiveJournal land, but those who are…

  • Moving the Goalposts

    In the few weeks since I published the first drafts of AtomActivity, ActivitySchema and friends several things have come about: FriendFeed is…

  • Activity Streams and Comment Aggregation

    One pain point that exists for activity streams right now is the dispersal of responses over various networks. When I post a blog entry like this…

  • Post a new comment


    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.