examples/venue_search.rb in ncmb-ruby-client-0.0.1 vs examples/venue_search.rb in ncmb-ruby-client-0.0.2

- old
+ new

@@ -1,6 +1,5 @@ -# -*- coding: utf-8 -*- $:.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $:.unshift(File.dirname(__FILE__)) require 'rubygems' require 'ncmb' require 'yaml' @@ -20,27 +19,9 @@ } } puts venues_class.post(params).body end params = {} -params[:where] = { - "point" => { - "$within" => { - "$box" => [ - { - "__type" => "GeoPoint", - "latitude" => 35.690921, - "longitude" => 139.700258 - }, - { - "__type" => "GeoPoint", - "latitude" => 35.728926, - "longitude" => 139.71038 - } - ] - } - } -} params[:where] = { "location" => { "$nearSphere" => { "__type" => "GeoPoint", "longitude" => 139.745433,