Useful code from my Google Maps API experimentation