Sha256: fb7cb3c84276171e9838fcfe365a2f123c18c471ea23155981c0f692b2158b4e

Contents?: true

Size: 752 Bytes

Versions: 31

Compression:

Stored size: 752 Bytes

Contents

# Create a layer, create a place on the layer, and then delete the place and the layer.

require 'rubygems'
require 'geoloqi'

geoloqi = Geoloqi::Session.new :oauth_token => 'YOUR OAUTH TOKEN GOES HERE'

layer_id = geoloqi.post('layer/create', :name => 'Test Layer')['layer_id']

puts geoloqi.get("layer/info/#{layer_id}")

place_id = geoloqi.post('place/create', {
  "layer_id" => layer_id,
  "name" => "Munich on the Willamette",
  "latitude" => "45.5037078163837",
  "longitude" => "-122.622699737549",
  "radius" => "3467.44",
  "extra" => {
    "description" => "Portland",
    "url" => "http://en.wikipedia.org/wiki/Portland,_Oregon"
  }
})['place_id']

puts geoloqi.post("place/delete/#{place_id}")

puts geoloqi.post("layer/delete/#{layer_id}")

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
geoloqi-0.9.33 examples/simple.rb
geoloqi-0.9.32 examples/simple.rb
geoloqi-0.9.31 examples/simple.rb
geoloqi-0.9.30 examples/simple.rb
geoloqi-0.9.28 examples/simple.rb
geoloqi-0.9.27 examples/simple.rb
geoloqi-0.9.26 examples/simple.rb
geoloqi-0.9.24 examples/simple.rb
geoloqi-0.9.23 examples/simple.rb
geoloqi-0.9.22 examples/simple.rb
geoloqi-0.9.21 examples/simple.rb
geoloqi-0.9.19 examples/simple.rb
geoloqi-0.9.18 examples/simple.rb
geoloqi-0.9.17 examples/simple.rb
geoloqi-0.9.16 examples/simple.rb
geoloqi-0.9.15 examples/simple.rb
geoloqi-0.9.14 examples/simple.rb
geoloqi-0.9.13 examples/simple.rb
geoloqi-0.9.12 examples/simple.rb
geoloqi-0.9.11 examples/simple.rb