Project

kamel

0.01
No commit activity in last 3 years
No release in over 3 years
Create KML files for tasty overlays on google earth and google maps
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 0.9
~> 2.9

Runtime

~> 3.0.0
~> 0.1.4
 Project Readme

Kamel

gem install kamel

Create KML files for tasty overlays on google earth and google maps. Provides a
cleaner interface than ruby_kml (which it uses internally).

Tested on ruby 1.8.7 and 1.9.3.

Usage

require 'rubygems'
require 'kamel'

overlay = Kamel::Overlay.new
overlay.name = 'Melbourne Train Stations'
[
  ["Flinders St",    -37.818078, 144.966811],
  ["Southern Cross", -37.818358, 144.952417],
].each do |name, lat, lng|
  overlay.placemark!(
    :name        => name,
    :description => "This is a train station",
    :location    => {:lng => lng, :lat => lat},
    :icon        => "http://www.uksa.org/images/about/train-icon.gif"
  )
end
puts overlay.to_kml