diff --git a/README.rdoc b/README.rdoc index 4463858..bdca890 100644 --- a/README.rdoc +++ b/README.rdoc @@ -18,7 +18,7 @@ Start by requiring SimpleGeo and setting your authentication credentials: require 'simple_geo' SimpleGeo::Client.set_credentials('token', 'secret') - + === Getting a record record = SimpleGeo::Client.get_record('com.simplegeo.global.geonames', '5373629') @@ -42,7 +42,7 @@ Start by requiring SimpleGeo and setting your authentication credentials: SimpleGeo::Client.add_record(record) === Updating a record - + record = SimpleGeo::Client.get_record('com.example.testlayer', '1234') record.lat = 40.714269 record.lon = -74.005973 @@ -87,32 +87,32 @@ Start by requiring SimpleGeo and setting your authentication credentials: See http://help.simplegeo.com/faqs/api-documentation/endpoints for other optional params # by lat, lon - records = SimpleGeo::Client.get_nearby_records('com.example.testlayer', + records = SimpleGeo::Client.get_nearby_records('com.example.testlayer', :lat => 37.759650000000001, :lon => -122.42608) - + # by geohash - records = SimpleGeo::Client.get_nearby_records('com.example.testlayer', + records = SimpleGeo::Client.get_nearby_records('com.example.testlayer', :geohash => '9q8yy1ujcsfm') === Getting a nearby address for a lat and lon nearby_address = SimpleGeo::Client.get_nearby_address(37.759650000000001, -122.42608) - + === Getting SpotRank density information # by day density_info = SimpleGeo::Client.get_density(37.75965, -122.42608, 'sat') - + # by hour density_info = SimpleGeo::Client.get_density(37.75965, -122.42608, 'sat', '16' ) === Other APIs -For more examples see: spec/client_spec.rb +For more examples see: spec/client_spec.rb == Note on Patches/Pull Requests - + * Fork the project. * Make your feature addition or bug fix. * Add tests for it. This is important so I don't break it in a diff --git a/Rakefile b/Rakefile index 9561cf5..578cd8d 100644 --- a/Rakefile +++ b/Rakefile @@ -9,7 +9,7 @@ begin gem.email = "dan@dofter.com" gem.homepage = "http://github.com/archfear/sg-ruby" gem.authors = ["Dan Dofter"] - + gem.add_dependency("oauth", ">= 0.4.0") gem.add_dependency("json_pure") diff --git a/lib/simple_geo/client.rb b/lib/simple_geo/client.rb index 01b6207..9bb215c 100644 --- a/lib/simple_geo/client.rb +++ b/lib/simple_geo/client.rb @@ -104,26 +104,26 @@ def get_nearby_address(lat, lon) geojson_hash = get Endpoint.nearby_address(lat, lon) HashUtils.symbolize_keys geojson_hash['properties'] end - + def get_context(lat, lon) geojson_hash = get Endpoint.context(lat, lon) HashUtils.recursively_symbolize_keys geojson_hash end - + # Required # lat - The latitude of the point # lon - The longitude of the point - # + # # Optional # q - A search term. For example, q=Starbucks would return all places matching the name Starbucks. # category - Filter by an exact classifier (types, categories, subcategories, tags) # radius - Search by radius in kilometers. Default radius is 25km. - # + # # If you provide only a q parameter it does a full-text search - # of the name and classifiers of a place. If you provide only the category parameter - # it does a full-text search of all classifiers. If you provide q and category, + # of the name and classifiers of a place. If you provide only the category parameter + # it does a full-text search of all classifiers. If you provide q and category, # q is a full-text search of place names and category is an exact match - # to one or more of the classifiers. + # to one or more of the classifiers. def get_places(lat, lon, options={}) geojson_hash = get Endpoint.places(lat, lon, options) HashUtils.recursively_symbolize_keys geojson_hash diff --git a/lib/simple_geo/endpoint.rb b/lib/simple_geo/endpoint.rb index 4ada546..89eff52 100644 --- a/lib/simple_geo/endpoint.rb +++ b/lib/simple_geo/endpoint.rb @@ -35,11 +35,11 @@ def nearby_ip_address(layer, ip) def nearby_address(lat, lon) endpoint_url "nearby/address/#{lat},#{lon}.json" end - + def context(lat, lon) endpoint_url "context/#{lat},#{lon}.json", '1.0' end - + def places(lat, lon, options) if options.empty? endpoint_url "places/#{lat},#{lon}.json", '1.0' diff --git a/spec/client_spec.rb b/spec/client_spec.rb index a3b0606..6e5e850 100644 --- a/spec/client_spec.rb +++ b/spec/client_spec.rb @@ -485,7 +485,7 @@ } end end - + context "getting a context" do before do stub_request :get, @@ -498,7 +498,7 @@ context_info.should == {:features=>[{:type=>"Region", :license=>"http://creativecommons.org/publicdomain/mark/1.0/", :handle=>"SG_6uJ6wzViqnu1oYhZcDvC6W_42.834306_-85.959803", :subcategory=>"Provincial (Lower)", :bounds=>[-86.166987, 42.767498, -85.782106, 42.943294], :name=>"State House District 90", :category=>"Legislative District", :abbr=>"", :href=>"http://api.simplegeo.com/1.0/features/SG_6uJ6wzViqnu1oYhZcDvC6W_42.834306_-85.959803.json"}, {:type=>"Region", :license=>"http://creativecommons.org/publicdomain/mark/1.0/", :handle=>"SG_4OIGBRyxTiWgCdg0Lyn07s_42.952959_-86.403728", :subcategory=>"Provincial (Upper)", :bounds=>[-87.107669, 42.765202, -85.670247, 43.205978], :name=>"State Senate District 30", :category=>"Legislative District", :abbr=>"", :href=>"http://api.simplegeo.com/1.0/features/SG_4OIGBRyxTiWgCdg0Lyn07s_42.952959_-86.403728.json"}, {:type=>"Region", :license=>"http://creativecommons.org/publicdomain/mark/1.0/", :handle=>"SG_2CIOVMi7dzlPcX4McJ7R2f_42.948535_-86.421882", :subcategory=>"County", :bounds=>[-87.107669, 42.765202, -85.782067, 43.205978], :name=>"Ottawa", :category=>"Administrative", :abbr=>"", :href=>"http://api.simplegeo.com/1.0/features/SG_2CIOVMi7dzlPcX4McJ7R2f_42.948535_-86.421882.json"}, {:type=>"Region", :license=>"http://creativecommons.org/publicdomain/mark/1.0/", :handle=>"SG_4c1GLzrQPs1lzMEwbXXDTG_44.209749_-85.174107", :subcategory=>"", :bounds=>[-89.876047, 41.695801, -82.407822, 48.23452], :name=>"America/Detroit", :category=>"Time Zone", :abbr=>"", :href=>"http://api.simplegeo.com/1.0/features/SG_4c1GLzrQPs1lzMEwbXXDTG_44.209749_-85.174107.json"}, {:type=>"Region", :license=>"http://creativecommons.org/publicdomain/mark/1.0/", :handle=>"SG_4BTI2YCOHn2kKGheRPjEIA_42.740746_-86.087464", :subcategory=>"", :bounds=>[-86.211882, 42.681352, -85.901239, 42.803153], :name=>"49423", :category=>"Postal Code", :abbr=>"", :href=>"http://api.simplegeo.com/1.0/features/SG_4BTI2YCOHn2kKGheRPjEIA_42.740746_-86.087464.json"}, {:type=>"Region", :license=>"http://creativecommons.org/publicdomain/mark/1.0/", :handle=>"SG_3uwSAEdXVBzK1ZER9Nqkdp_45.687160_-112.493107", :subcategory=>"", :bounds=>[-179.142471, 18.930138, 179.78115, 71.41218], :name=>"United States of America", :category=>"National", :abbr=>"", :href=>"http://api.simplegeo.com/1.0/features/SG_3uwSAEdXVBzK1ZER9Nqkdp_45.687160_-112.493107.json"}, {:type=>"Region", :license=>"http://creativecommons.org/publicdomain/mark/1.0/", :handle=>"SG_7PF95202oeSi8UJfS8Du4L_44.874774_-85.730953", :subcategory=>"State", :bounds=>[-90.418392, 41.696118, -82.122971, 48.306063], :name=>"Michigan", :category=>"Subnational", :abbr=>"MI", :href=>"http://api.simplegeo.com/1.0/features/SG_7PF95202oeSi8UJfS8Du4L_44.874774_-85.730953.json"}, {:type=>"Region", :license=>"http://creativecommons.org/publicdomain/mark/1.0/", :handle=>"SG_3ske3SdDp9Vzzr6M5GcNdz_42.772865_-86.121892", :subcategory=>"Unified", :bounds=>[-86.210248, 42.74334, -86.048046, 42.802685], :name=>"Holland City School District", :category=>"School District", :abbr=>"", :href=>"http://api.simplegeo.com/1.0/features/SG_3ske3SdDp9Vzzr6M5GcNdz_42.772865_-86.121892.json"}, {:type=>"Region", :license=>"http://creativecommons.org/publicdomain/mark/1.0/", :handle=>"SG_4wefQyQRSx0qqC75Y4hoLl_42.767627_-86.098521", :subcategory=>"City", :bounds=>[-86.166987, 42.729342, -86.047025, 42.802532], :name=>"Holland", :category=>"Municipal", :abbr=>"", :href=>"http://api.simplegeo.com/1.0/features/SG_4wefQyQRSx0qqC75Y4hoLl_42.767627_-86.098521.json"}, {:type=>"Region", :license=>"http://creativecommons.org/publicdomain/mark/1.0/", :handle=>"SG_0GfZAGyWb5a3aHQm1U7Nzw_42.792354_-86.110755", :subcategory=>"Municipal", :bounds=>[-86.125552, 42.783776, -86.09735, 42.803224], :name=>"1393864002002", :category=>"Legislative District", :abbr=>"", :href=>"http://api.simplegeo.com/1.0/features/SG_0GfZAGyWb5a3aHQm1U7Nzw_42.792354_-86.110755.json"}, {:type=>"Region", :license=>"http://creativecommons.org/publicdomain/mark/1.0/", :handle=>"SG_4Nw3IcoA88j0EvXHP6fneE_42.791087_-86.094830", :subcategory=>"Tract", :bounds=>[-86.111603, 42.783016, -86.080832, 42.80099], :name=>"26139022300", :category=>"US Census", :abbr=>"", :href=>"http://api.simplegeo.com/1.0/features/SG_4Nw3IcoA88j0EvXHP6fneE_42.791087_-86.094830.json"}], :timestamp=>1291928637.193, :query=>{:latitude=>42.790311, :longitude=>-86.103725}} end end - + context "search for nearby places" do context "without optional params" do before do @@ -512,14 +512,14 @@ nearby_places.should == {:type=>"FeatureCollection", :total=>25, :features=>[{:type=>"Feature", :properties=>{:owner=>"simplegeo", :classifiers=>[{:type=>"Food & Drink", :category=>"Restaurant", :subcategory=>""}], :tags=>[""], :postcode=>"49423", :city=>"Holland", :address=>"84 E 8th St", :phone=>"+1 616 396 8484", :country=>"US", :name=>"84 East", :province=>"MI"}, :geometry=>{:type=>"Point", :coordinates=>[-86.103744, 42.790269]}, :id=>"SG_57YZu0CVFGKQnIulntuuWr_42.790269_-86.103744@1291805576"}, {:type=>"Feature", :properties=>{:owner=>"simplegeo", :classifiers=>[{:type=>"Entertainment", :category=>"Cinema", :subcategory=>"Movie Theater"}], :tags=>[""], :postcode=>"49423", :city=>"Holland", :address=>"86 E 8th St", :phone=>"+1 616 395 7403", :country=>"US", :name=>"Knickerbocker Theatre", :province=>"MI"}, :geometry=>{:type=>"Point", :coordinates=>[-86.103679, 42.790269]}, :id=>"SG_5iwLxG6ALqH1IBgxCzWZIy_42.790269_-86.103679@1291805576"}, {:type=>"Feature", :properties=>{:owner=>"simplegeo", :classifiers=>[{:type=>"Services", :category=>"Real Estate", :subcategory=>"Architect"}], :website=>"www.gmb.com", :tags=>["engineering", "architectural"], :postcode=>"49423", :city=>"Holland", :address=>"85 E 8th St", :phone=>"+1 616 392 7034", :country=>"US", :name=>"Gmb Architects-Engineers", :province=>"MI"}, :geometry=>{:type=>"Point", :coordinates=>[-86.103679, 42.790419]}, :id=>"SG_1iwoQtrrKg632jyzQxCnWh_42.790419_-86.103679@1291805576"}, {:type=>"Feature", :properties=>{:owner=>"simplegeo", :classifiers=>[{:type=>"Services", :category=>"Banks & Credit Unions", :subcategory=>"Investment Brokerage"}], :tags=>["stock", "bond"], :postcode=>"49423", :city=>"Holland", :address=>"85 E 8th St", :phone=>"+1 616 394 9199", :country=>"US", :name=>"Hilliard Lyons Inc", :province=>"MI"}, :geometry=>{:type=>"Point", :coordinates=>[-86.103679, 42.790419]}, :id=>"SG_1XxsjEwzAzO1iVklXUfWSX_42.790419_-86.103679@1291805576"}, {:type=>"Feature", :properties=>{:owner=>"simplegeo", :classifiers=>[{:type=>"Services", :category=>"Professional", :subcategory=>"Lawyer & Legal Services"}], :website=>"www.wnj.com", :tags=>["attorney"], :postcode=>"49423", :city=>"Holland", :address=>"85 E 8th St", :phone=>"+1 616 396 9800", :country=>"US", :name=>"Warner Norcross & Judd", :province=>"MI"}, :geometry=>{:type=>"Point", :coordinates=>[-86.103679, 42.790419]}, :id=>"SG_0gq8wAnbF1wtS1ISMf28qZ_42.790419_-86.103679@1291674002"}, {:type=>"Feature", :properties=>{:owner=>"simplegeo", :classifiers=>[{:type=>"Services", :category=>"Banks & Credit Unions", :subcategory=>"Bank"}], :tags=>[""], :postcode=>"49423", :city=>"Holland", :address=>"81 E 8th St", :phone=>"+1 616 355 2884", :country=>"US", :name=>"West Michigan Community Bank", :province=>"MI"}, :geometry=>{:type=>"Point", :coordinates=>[-86.10381, 42.790419]}, :id=>"SG_4rDWezFhTCBLMiWSHOCZPb_42.790419_-86.103810@1291674002"}, {:type=>"Feature", :properties=>{:owner=>"simplegeo", :classifiers=>[{:type=>"Retail Goods", :category=>"Shopping", :subcategory=>"Florist"}], :tags=>[""], :postcode=>"49423", :city=>"Holland", :address=>"78 E 8th St", :phone=>"+1 616 396 6369", :country=>"US", :name=>"Indigo Floral", :province=>"MI"}, :geometry=>{:type=>"Point", :coordinates=>[-86.103942, 42.790268]}, :id=>"SG_58jgJxBtYRhv9jx0osBZZ0_42.790268_-86.103942@1291674002"}, {:type=>"Feature", :properties=>{:owner=>"simplegeo", :classifiers=>[{:type=>"Services", :category=>"Professional", :subcategory=>"Business Services"}], :tags=>["information", "bureau", "convention"], :postcode=>"49423", :city=>"Holland", :address=>"76 E 8th St", :phone=>"+1 616 394 0000", :country=>"US", :name=>"Holland Area Convention", :province=>"MI"}, :geometry=>{:type=>"Point", :coordinates=>[-86.104007, 42.790268]}, :id=>"SG_6B9SX7leIDD6L7VBNkSxU7_42.790268_-86.104007@1291674002"}, {:type=>"Feature", :properties=>{:owner=>"simplegeo", :classifiers=>[{:type=>"Services", :category=>"Professional", :subcategory=>"Computer Services"}], :website=>"www.fastcadworks.com", :tags=>["design", "system", "graphics"], :postcode=>"49423", :city=>"Holland", :address=>"76 E 8th St", :phone=>"+1 616 392 8088", :country=>"US", :name=>"Fast Cad Works Inc", :province=>"MI"}, :geometry=>{:type=>"Point", :coordinates=>[-86.104007, 42.790268]}, :id=>"SG_6PImENDBqa4bKCUecEhx71_42.790268_-86.104007@1291674002"}, {:type=>"Feature", :properties=>{:owner=>"simplegeo", :classifiers=>[{:type=>"Services", :category=>"Professional", :subcategory=>"Business Services"}], :tags=>["operation"], :postcode=>"49423", :city=>"Holland", :address=>"76 E 8th St", :phone=>"+1 616 394 0000", :country=>"US", :name=>"Holland Area Cnvntn/Vstrs Brea", :province=>"MI"}, :geometry=>{:type=>"Point", :coordinates=>[-86.104007, 42.790268]}, :id=>"SG_7bdzq0CZtU46XOkK0rAnb2_42.790268_-86.104007@1291674002"}, {:type=>"Feature", :properties=>{:owner=>"simplegeo", :classifiers=>[{:type=>"Services", :category=>"Utilities", :subcategory=>"Mobile Phone"}], :tags=>["telephone", "cellular"], :postcode=>"49423", :city=>"Holland", :address=>"74 E 8th St", :phone=>"+1 616 396 9000", :country=>"US", :name=>"Citywide Cellular", :province=>"MI"}, :geometry=>{:type=>"Point", :coordinates=>[-86.104073, 42.790268]}, :id=>"SG_0MeFGadhDgjUvxctRv1jI0_42.790268_-86.104073@1291674002"}, {:type=>"Feature", :properties=>{:owner=>"simplegeo", :classifiers=>[{:type=>"Manufacturing & Wholesale Goods", :category=>"Wholesale", :subcategory=>"Stationery"}], :tags=>["product", "paper"], :postcode=>"49423", :city=>"Holland", :address=>"74 E 8th St", :phone=>"+1 616 928 0069", :country=>"US", :name=>"Paper Projects", :province=>"MI"}, :geometry=>{:type=>"Point", :coordinates=>[-86.104073, 42.790268]}, :id=>"SG_1pWaseKLVyM6s4AUy8uk1g_42.790268_-86.104073@1291674002"}, {:type=>"Feature", :properties=>{:owner=>"simplegeo", :classifiers=>[{:type=>"Food & Drink", :category=>"Restaurant", :subcategory=>""}], :tags=>[""], :postcode=>"49423", :city=>"Holland", :address=>"73 E 8th St", :phone=>"+1 616 393 6340", :country=>"US", :name=>"Curra Irish Pub", :province=>"MI"}, :geometry=>{:type=>"Point", :coordinates=>[-86.104073, 42.790418]}, :id=>"SG_7EHfB3sWifm1cuJEFsIPHM_42.790418_-86.104073@1291805576"}, {:type=>"Feature", :properties=>{:owner=>"simplegeo", :classifiers=>[{:type=>"Retail Goods", :category=>"Shopping", :subcategory=>"Musical Instruments"}], :tags=>[""], :postcode=>"49423", :city=>"Holland", :address=>"72 E 8th St", :phone=>"+1 616 494 9433", :country=>"US", :name=>"Holland Rit Music", :province=>"MI"}, :geometry=>{:type=>"Point", :coordinates=>[-86.104139, 42.790268]}, :id=>"SG_76E6200B4vVKwohCB9kn7d_42.790268_-86.104139@1291674002"}, {:type=>"Feature", :properties=>{:owner=>"simplegeo", :classifiers=>[{:type=>"Public Place", :category=>"Education", :subcategory=>"Special Training"}], :tags=>["instruction", "music"], :postcode=>"49423", :city=>"Holland", :address=>"72 E 8th St", :phone=>"+1 616 392 5455", :country=>"US", :name=>"RIT Music", :province=>"MI"}, :geometry=>{:type=>"Point", :coordinates=>[-86.104139, 42.790268]}, :id=>"SG_4o6BJ7oVuFFQd1xaC3Iwu9_42.790268_-86.104139@1291674002"}, {:type=>"Feature", :properties=>{:owner=>"simplegeo", :classifiers=>[{:type=>"Services", :category=>"Professional", :subcategory=>"Research"}], :tags=>[""], :postcode=>"49423", :city=>"Holland", :address=>"100 E 8th St", :phone=>"+1 616 395 7678", :country=>"US", :name=>"A C Van Raalte Institute", :province=>"MI"}, :geometry=>{:type=>"Point", :coordinates=>[-86.103218, 42.790269]}, :id=>"SG_5HRY8FXZc3mZJk3qhzqhMP_42.790269_-86.103218@1291674002"}, {:type=>"Feature", :properties=>{:owner=>"simplegeo", :classifiers=>[{:type=>"Services", :category=>"Banks & Credit Unions", :subcategory=>"Investment Brokerage"}], :tags=>["security"], :postcode=>"49423", :city=>"Holland", :address=>"100 E 8th St", :phone=>"+1 269 983 2587", :country=>"US", :name=>"First of Michigan Corporation", :province=>"MI"}, :geometry=>{:type=>"Point", :coordinates=>[-86.103218, 42.790269]}, :id=>"SG_6CD4NhpaIUhUXjrIpt989B_42.790269_-86.103218@1291805576"}, {:type=>"Feature", :properties=>{:owner=>"simplegeo", :classifiers=>[{:type=>"Services", :category=>"Banks & Credit Unions", :subcategory=>"Investment Brokerage"}, {:type=>"Services", :category=>"Professional", :subcategory=>"Management & Consulting"}], :tags=>["consultant", "planning", "financial"], :postcode=>"49423", :city=>"Holland", :address=>"100 E 8th St", :phone=>"+1 616 355 9890", :country=>"US", :name=>"Morgan Stanley", :province=>"MI"}, :geometry=>{:type=>"Point", :coordinates=>[-86.103218, 42.790269]}, :id=>"SG_6bcMqwMhOCYl98xqOvTHai_42.790269_-86.103218@1291805576"}, {:type=>"Feature", :properties=>{:owner=>"simplegeo", :classifiers=>[{:type=>"Services", :category=>"Banks & Credit Unions", :subcategory=>"Investment Brokerage"}], :tags=>["security", "management", "consulting"], :postcode=>"49423", :city=>"Holland", :address=>"100 E 8th St", :phone=>"+1 616 392 5333", :country=>"US", :name=>"Merrill Lynch", :province=>"MI"}, :geometry=>{:type=>"Point", :coordinates=>[-86.103218, 42.790269]}, :id=>"SG_1k69enLHB2I9GSIAwYKHZs_42.790269_-86.103218@1291805576"}, {:type=>"Feature", :properties=>{:owner=>"simplegeo", :classifiers=>[{:type=>"Services", :category=>"Banks & Credit Unions", :subcategory=>"Investment Brokerage"}], :tags=>["stock", "bond"], :postcode=>"49423", :city=>"Holland", :address=>"100 E 8th St", :phone=>"+1 616 546 3557", :country=>"US", :name=>"Oppenheimer & Co Inc", :province=>"MI"}, :geometry=>{:type=>"Point", :coordinates=>[-86.103218, 42.790269]}, :id=>"SG_4wOwAHiiQNDLSwKRYjoYvU_42.790269_-86.103218@1291805576"}, {:type=>"Feature", :properties=>{:owner=>"simplegeo", :classifiers=>[{:type=>"Manufacturing & Wholesale Goods", :category=>"Wholesale", :subcategory=>"Furniture"}], :tags=>["household", "wood", "mfg"], :postcode=>"49423", :city=>"Holland", :address=>"100 E 8th St", :phone=>"+1 616 392 8761", :country=>"US", :name=>"Baker Furniture Museum", :province=>"MI"}, :geometry=>{:type=>"Point", :coordinates=>[-86.103218, 42.790269]}, :id=>"SG_3koZp5aq0uEvV3EgZ5dBCW_42.790269_-86.103218@1291674002"}, {:type=>"Feature", :properties=>{:owner=>"simplegeo", :classifiers=>[{:type=>"Public Place", :category=>"Education", :subcategory=>"College"}], :tags=>["academic", "school"], :postcode=>"49423", :city=>"Holland", :address=>"100 E 8th St", :phone=>"+1 616 395 7919", :country=>"US", :name=>"Hope Academy Of Senior Prf", :province=>"MI"}, :geometry=>{:type=>"Point", :coordinates=>[-86.103218, 42.790269]}, :id=>"SG_4Ne2H3wEbDjnNXNcgOTTrd_42.790269_-86.103218@1291674002"}, {:type=>"Feature", :properties=>{:owner=>"simplegeo", :classifiers=>[{:type=>"Services", :category=>"Banks & Credit Unions", :subcategory=>"Bank"}], :tags=>["commercial"], :postcode=>"49423", :city=>"Holland", :address=>"100 E 8th St", :phone=>"+1 616 395 2585", :country=>"US", :name=>"Republic Bank", :province=>"MI"}, :geometry=>{:type=>"Point", :coordinates=>[-86.103218, 42.790269]}, :id=>"SG_4TgInjExuHo9gtBelHyAeF_42.790269_-86.103218@1291674002"}, {:type=>"Feature", :properties=>{:owner=>"simplegeo", :classifiers=>[{:type=>"Services", :category=>"Real Estate", :subcategory=>"Real Estate Agent"}], :tags=>["cooperative"], :postcode=>"49423", :city=>"Holland", :address=>"100 E 8th St", :phone=>"+1 616 399 5125", :country=>"US", :name=>"Beverage Associates Co-Op Inc", :province=>"MI"}, :geometry=>{:type=>"Point", :coordinates=>[-86.103218, 42.790269]}, :id=>"SG_2kJmYRSi2D4vye77KO9FvS_42.790269_-86.103218@1291805576"}, {:type=>"Feature", :properties=>{:owner=>"simplegeo", :classifiers=>[{:type=>"Manufacturing & Wholesale Goods", :category=>"Manufacturing", :subcategory=>"Food"}], :website=>"www.newhollandbrew.com", :tags=>["brewer"], :postcode=>"49423", :city=>"Holland", :address=>"66 E 8th St", :phone=>"+1 616 355 6422", :country=>"US", :name=>"New Holland Brewing Co", :province=>"MI"}, :geometry=>{:type=>"Point", :coordinates=>[-86.104336, 42.790268]}, :id=>"SG_7WiYaNPjducHg5gbpH1ukN_42.790268_-86.104336@1291674002"}]} end end - + context "with a search term" do before do stub_request :get, 'http://api.simplegeo.com/1.0/places/42.790311,-86.103725.json?q=Dutch', :fixture_file => 'places_q.json' end - + it "should return a hash with the places nearby matching the name" do dutch_places = SimpleGeo::Client.get_places(42.790311, -86.103725, :q => 'Dutch') dutch_places.should == {:type=>"FeatureCollection", :features=>[{:type=>"Feature", :geometry=>{:type=>"Point", :coordinates=>[-86.112928, 42.801396]}, :properties=>{:owner=>"simplegeo", :province=>"MI", :classifiers=>[{:type=>"Services", :category=>"Building & Trades", :subcategory=>"Construction"}], :tags=>["tile", "dealer"], :postcode=>"49424", :city=>"Holland", :address=>"129 Howard Ave", :country=>"US", :name=>"Duca The Dutch Carpenter", :phone=>"+1 616 494 0404"}, :id=>"SG_6I3KqAqKIqpRLaduUcUBRr_42.801396_-86.112928@1291674002"}, {:type=>"Feature", :geometry=>{:type=>"Point", :coordinates=>[-86.107095, 42.776685]}, :properties=>{:owner=>"simplegeo", :province=>"MI", :classifiers=>[{:type=>"Entertainment", :category=>"Travel", :subcategory=>"Hotels & Motels"}], :tags=>["house", "operation", "construction"], :postcode=>"49423", :city=>"Holland", :address=>"560 Central Ave", :country=>"US", :name=>"Dutch Colonial Inn", :phone=>"+1 616 396 3664"}, :id=>"SG_6ucOjwWPjOCcbHeyMJnoY9_42.776685_-86.107095@1291674002"}, {:type=>"Feature", :geometry=>{:type=>"Point", :coordinates=>[-86.098187, 42.775013]}, :properties=>{:owner=>"simplegeo", :province=>"MI", :classifiers=>[{:type=>"Services", :category=>"Banks & Credit Unions", :subcategory=>"Bank"}], :tags=>["state"], :postcode=>"49423", :city=>"Holland", :address=>"215 E 25th St", :country=>"US", :name=>"Big Dutch Fleet Credit Union", :phone=>"+1 616 396 5000"}, :id=>"SG_6mO5cCEdHU8AFO0OxvLQgP_42.775013_-86.098187@1291674002"}, {:type=>"Feature", :geometry=>{:type=>"Point", :coordinates=>[-86.126474, 42.781931]}, :properties=>{:owner=>"simplegeo", :province=>"MI", :classifiers=>[{:type=>"Retail Goods", :category=>"Home & Garden", :subcategory=>"Furniture"}], :tags=>["equipment", "kitchen", "cabinet"], :postcode=>"49423", :city=>"Holland", :address=>"420 W 17th St", :country=>"US", :name=>"Dutch Made Custom Cabinetry", :phone=>"+1 616 392 4480"}, :id=>"SG_1SO3yvCM1dWdnSlo3vywBI_42.781931_-86.126474@1291674002"}, {:type=>"Feature", :geometry=>{:type=>"Point", :coordinates=>[-86.13011, 42.779354]}, :properties=>{:owner=>"simplegeo", :province=>"MI", :classifiers=>[{:type=>"Manufacturing & Wholesale Goods", :category=>"Manufacturing", :subcategory=>"Food"}], :tags=>["product", "salad"], :postcode=>"49423", :city=>"Holland", :address=>"507 W 20th St", :country=>"US", :name=>"Dutch Treat Salads", :phone=>"+1 616 396 3392"}, :id=>"SG_6jFqymBz2f0fL6isDiizHO_42.779354_-86.130110@1291674002"}, {:type=>"Feature", :geometry=>{:type=>"Point", :coordinates=>[-86.089768, 42.810865]}, :properties=>{:owner=>"simplegeo", :province=>"MI", :classifiers=>[{:type=>"Food & Drink", :category=>"Restaurant", :subcategory=>""}], :tags=>[], :postcode=>"49424", :city=>"Holland", :address=>"2229 N Park Dr", :country=>"US", :name=>"Dutch Subway LLC", :phone=>"+1 616 393 7991"}, :id=>"SG_1Y0brcGA5S8IF0Phta2BwM_42.810865_-86.089768@1291805576"}, {:type=>"Feature", :geometry=>{:type=>"Point", :coordinates=>[-86.087692, 42.811998]}, :properties=>{:owner=>"simplegeo", :province=>"MI", :classifiers=>[{:type=>"Retail Goods", :category=>"Shopping", :subcategory=>"Gifts & Souvenirs"}], :tags=>["shop"], :postcode=>"49424", :city=>"Holland", :website=>"www.dutchvillage.com", :address=>"12350 James St", :country=>"US", :name=>"Dutch Village", :phone=>"+1 616 396 1475"}, :id=>"SG_20goKPd6BzmzAl787Hmi5h_42.811998_-86.087692@1291674002"}, {:type=>"Feature", :geometry=>{:type=>"Point", :coordinates=>[-86.122281, 42.812614]}, :properties=>{:owner=>"simplegeo", :province=>"MI", :classifiers=>[{:type=>"Retail Goods", :category=>"Food & Beverages", :subcategory=>"Bakery"}], :tags=>["baker"], :postcode=>"49424", :city=>"Holland", :address=>"501 Butternut Dr", :country=>"US", :name=>"Dutch Delite Bakery", :phone=>"+1 616 399 6050"}, :id=>"SG_7BxMkAcMduxYrtRlSP7JJ5_42.812614_-86.122281@1291674002"}, {:type=>"Feature", :geometry=>{:type=>"Point", :coordinates=>[-86.038383, 42.805126]}, :properties=>{:owner=>"simplegeo", :province=>"MI", :classifiers=>[{:type=>"Entertainment", :category=>"Travel", :subcategory=>"Campground"}], :tags=>["trailer"], :postcode=>"49464", :city=>"Zeeland", :address=>"10300 Gordon St", :country=>"US", :name=>"Dutch St Camping & Recreation", :phone=>"+1 616 772 4303"}, :id=>"SG_5BE2NtLKOzhR4GEJHqP70I_42.805126_-86.038383@1291805576"}, {:type=>"Feature", :geometry=>{:type=>"Point", :coordinates=>[-86.038383, 42.805126]}, :properties=>{:owner=>"simplegeo", :province=>"MI", :classifiers=>[{:type=>"Entertainment", :category=>"Travel", :subcategory=>"Campground"}], :tags=>[], :postcode=>"49464", :city=>"Zeeland", :address=>"10300 Gordon St", :country=>"US", :name=>"Dutch Treat Camping & Rec", :phone=>"+1 616 772 4303"}, :id=>"SG_6EqRqswuhnjdXJpzV4tImf_42.805126_-86.038383@1291805576"}, {:type=>"Feature", :geometry=>{:type=>"Point", :coordinates=>[-86.094211, 42.841058]}, :properties=>{:owner=>"simplegeo", :province=>"MI", :classifiers=>[{:type=>"Retail Goods", :category=>"Shopping", :subcategory=>"Gifts & Souvenirs"}], :tags=>[], :postcode=>"49424", :city=>"Holland", :address=>"12755 Quincy St", :country=>"US", :name=>"Dutch Delft Blue", :phone=>"+1 616 399 1803"}, :id=>"SG_3lJVWKDOt3xnYwgq26dGr8_42.841058_-86.094211@1291674002"}, {:type=>"Feature", :geometry=>{:type=>"Point", :coordinates=>[-86.067609, 42.739675]}, :properties=>{:owner=>"simplegeo", :province=>"MI", :classifiers=>[{:type=>"Services", :category=>"Retail", :subcategory=>"Car Wash"}], :tags=>["truck", "cleaning"], :postcode=>"49423", :city=>"Holland", :address=>"4356 Lincoln Rd", :country=>"US", :name=>"Dutch Touch Truck Wash", :phone=>"+1 616 396 0679"}, :id=>"SG_6ei1IIEtJ8jLWel1t3QsZv_42.739675_-86.067609@1291674002"}, {:type=>"Feature", :geometry=>{:type=>"Point", :coordinates=>[-85.979829, 42.843688]}, :properties=>{:owner=>"simplegeo", :province=>"MI", :classifiers=>[{:type=>"Manufacturing & Wholesale Goods", :category=>"Wholesale", :subcategory=>"Plants"}], :tags=>["nursery", "tree"], :postcode=>"49464", :city=>"Zeeland", :address=>"4135 80th Ave", :country=>"US", :name=>"Dutch Touch Growers Inc", :phone=>"+1 616 875 7416"}, :id=>"SG_5Sbj5KbLNCSIfh3P0zuyD0_42.843688_-85.979829@1291674002"}], :total=>13} diff --git a/spec/fixtures/contains.json b/spec/fixtures/contains.json index a2db8b5..ae3840e 100644 --- a/spec/fixtures/contains.json +++ b/spec/fixtures/contains.json @@ -1,6 +1,6 @@ [ { - "bounds": + "bounds": [ -122.435188, 37.756093, @@ -12,9 +12,9 @@ "abbr": "", "name": "06075020600" }, - + { - "bounds": + "bounds": [ -123.17382499999999, 37.639829999999996, @@ -26,9 +26,9 @@ "abbr": "", "name": "San Francisco" }, - + { - "bounds": + "bounds": [ -123.17382499999999, 37.639829999999996, @@ -40,9 +40,9 @@ "abbr": "", "name": "San Francisco" }, - + { - "bounds": + "bounds": [ -122.612285, 37.708131000000002, @@ -54,9 +54,9 @@ "abbr": "", "name": "Congressional District 8" }, - + { - "bounds": + "bounds": [ -179.14247147726383, 18.930137634111077, @@ -68,9 +68,9 @@ "abbr": "", "name": "United States of America" }, - + { - "bounds": + "bounds": [ -122.428882, 37.758029999999998, @@ -82,9 +82,9 @@ "abbr": "", "name": "Mission Dolores" }, - + { - "bounds": + "bounds": [ -122.51666666668193, 37.191666666628507, @@ -96,9 +96,9 @@ "abbr": "", "name": "San Francisco1" }, - + { - "bounds": + "bounds": [ -122.451553, 37.746687000000001, @@ -110,9 +110,9 @@ "abbr": "", "name": "94114" }, - + { - "bounds": + "bounds": [ -124.48200299999999, 32.528832000000001, diff --git a/spec/fixtures/empty_feature_collection.json b/spec/fixtures/empty_feature_collection.json index fafc001..f9478cf 100644 --- a/spec/fixtures/empty_feature_collection.json +++ b/spec/fixtures/empty_feature_collection.json @@ -1,4 +1,4 @@ { - "type": "FeatureCollection", + "type": "FeatureCollection", "features": [] } diff --git a/spec/fixtures/get_density_by_day.json b/spec/fixtures/get_density_by_day.json index 8fce265..f755b77 100644 --- a/spec/fixtures/get_density_by_day.json +++ b/spec/fixtures/get_density_by_day.json @@ -1,831 +1,831 @@ { - "type": "FeatureCollection", + "type": "FeatureCollection", "features": [ { "geometry": { - "type": "Polygon", + "type": "Polygon", "coordinates": [ [ - 37.7587890625, + 37.7587890625, -122.4267578125 - ], + ], [ - 37.759765625, + 37.759765625, -122.4267578125 - ], + ], [ - 37.759765625, + 37.759765625, -122.42578125 - ], + ], [ - 37.7587890625, + 37.7587890625, -122.42578125 - ], + ], [ - 37.7587890625, + 37.7587890625, -122.4267578125 ] ] - }, - "type": "Feature", + }, + "type": "Feature", "properties": { - "hour": 0, - "trending_rank": 2, - "local_rank": 4, - "city_rank": 10, - "worldwide_rank": 4, + "hour": 0, + "trending_rank": 2, + "local_rank": 4, + "city_rank": 10, + "worldwide_rank": 4, "dayname": "sat" } - }, + }, { "geometry": { - "type": "Polygon", + "type": "Polygon", "coordinates": [ [ - 37.7587890625, + 37.7587890625, -122.4267578125 - ], + ], [ - 37.759765625, + 37.759765625, -122.4267578125 - ], + ], [ - 37.759765625, + 37.759765625, -122.42578125 - ], + ], [ - 37.7587890625, + 37.7587890625, -122.42578125 - ], + ], [ - 37.7587890625, + 37.7587890625, -122.4267578125 ] ] - }, - "type": "Feature", + }, + "type": "Feature", "properties": { - "hour": 1, - "trending_rank": -2, - "local_rank": 6, - "city_rank": 10, - "worldwide_rank": 6, + "hour": 1, + "trending_rank": -2, + "local_rank": 6, + "city_rank": 10, + "worldwide_rank": 6, "dayname": "sat" } - }, + }, { "geometry": { - "type": "Polygon", + "type": "Polygon", "coordinates": [ [ - 37.7587890625, + 37.7587890625, -122.4267578125 - ], + ], [ - 37.759765625, + 37.759765625, -122.4267578125 - ], + ], [ - 37.759765625, + 37.759765625, -122.42578125 - ], + ], [ - 37.7587890625, + 37.7587890625, -122.42578125 - ], + ], [ - 37.7587890625, + 37.7587890625, -122.4267578125 ] ] - }, - "type": "Feature", + }, + "type": "Feature", "properties": { - "hour": 2, - "trending_rank": 2, - "local_rank": 2, - "city_rank": 10, - "worldwide_rank": 2, + "hour": 2, + "trending_rank": 2, + "local_rank": 2, + "city_rank": 10, + "worldwide_rank": 2, "dayname": "sat" } - }, + }, { "geometry": { - "type": "Polygon", + "type": "Polygon", "coordinates": [ [ - 37.7587890625, + 37.7587890625, -122.4267578125 - ], + ], [ - 37.759765625, + 37.759765625, -122.4267578125 - ], + ], [ - 37.759765625, + 37.759765625, -122.42578125 - ], + ], [ - 37.7587890625, + 37.7587890625, -122.42578125 - ], + ], [ - 37.7587890625, + 37.7587890625, -122.4267578125 ] ] - }, - "type": "Feature", + }, + "type": "Feature", "properties": { - "hour": 3, - "trending_rank": -2, - "local_rank": 6, - "city_rank": 10, - "worldwide_rank": 6, + "hour": 3, + "trending_rank": -2, + "local_rank": 6, + "city_rank": 10, + "worldwide_rank": 6, "dayname": "sat" } - }, + }, { "geometry": { - "type": "Polygon", + "type": "Polygon", "coordinates": [ [ - 37.7587890625, + 37.7587890625, -122.4267578125 - ], + ], [ - 37.759765625, + 37.759765625, -122.4267578125 - ], + ], [ - 37.759765625, + 37.759765625, -122.42578125 - ], + ], [ - 37.7587890625, + 37.7587890625, -122.42578125 - ], + ], [ - 37.7587890625, + 37.7587890625, -122.4267578125 ] ] - }, - "type": "Feature", + }, + "type": "Feature", "properties": { - "hour": 4, - "trending_rank": -2, - "local_rank": 4, - "city_rank": 10, - "worldwide_rank": 4, + "hour": 4, + "trending_rank": -2, + "local_rank": 4, + "city_rank": 10, + "worldwide_rank": 4, "dayname": "sat" } - }, + }, { "geometry": { - "type": "Polygon", + "type": "Polygon", "coordinates": [ [ - 37.7587890625, + 37.7587890625, -122.4267578125 - ], + ], [ - 37.759765625, + 37.759765625, -122.4267578125 - ], + ], [ - 37.759765625, + 37.759765625, -122.42578125 - ], + ], [ - 37.7587890625, + 37.7587890625, -122.42578125 - ], + ], [ - 37.7587890625, + 37.7587890625, -122.4267578125 ] ] - }, - "type": "Feature", + }, + "type": "Feature", "properties": { - "hour": 6, - "trending_rank": 2, - "local_rank": 2, - "city_rank": 10, - "worldwide_rank": 2, + "hour": 6, + "trending_rank": 2, + "local_rank": 2, + "city_rank": 10, + "worldwide_rank": 2, "dayname": "sat" } - }, + }, { "geometry": { - "type": "Polygon", + "type": "Polygon", "coordinates": [ [ - 37.7587890625, + 37.7587890625, -122.4267578125 - ], + ], [ - 37.759765625, + 37.759765625, -122.4267578125 - ], + ], [ - 37.759765625, + 37.759765625, -122.42578125 - ], + ], [ - 37.7587890625, + 37.7587890625, -122.42578125 - ], + ], [ - 37.7587890625, + 37.7587890625, -122.4267578125 ] ] - }, - "type": "Feature", + }, + "type": "Feature", "properties": { - "hour": 7, - "trending_rank": 1, - "local_rank": 5, - "city_rank": 10, - "worldwide_rank": 5, + "hour": 7, + "trending_rank": 1, + "local_rank": 5, + "city_rank": 10, + "worldwide_rank": 5, "dayname": "sat" } - }, + }, { "geometry": { - "type": "Polygon", + "type": "Polygon", "coordinates": [ [ - 37.7587890625, + 37.7587890625, -122.4267578125 - ], + ], [ - 37.759765625, + 37.759765625, -122.4267578125 - ], + ], [ - 37.759765625, + 37.759765625, -122.42578125 - ], + ], [ - 37.7587890625, + 37.7587890625, -122.42578125 - ], + ], [ - 37.7587890625, + 37.7587890625, -122.4267578125 ] ] - }, - "type": "Feature", + }, + "type": "Feature", "properties": { - "hour": 8, - "trending_rank": 0, - "local_rank": 6, - "city_rank": 10, - "worldwide_rank": 6, + "hour": 8, + "trending_rank": 0, + "local_rank": 6, + "city_rank": 10, + "worldwide_rank": 6, "dayname": "sat" } - }, + }, { "geometry": { - "type": "Polygon", + "type": "Polygon", "coordinates": [ [ - 37.7587890625, + 37.7587890625, -122.4267578125 - ], + ], [ - 37.759765625, + 37.759765625, -122.4267578125 - ], + ], [ - 37.759765625, + 37.759765625, -122.42578125 - ], + ], [ - 37.7587890625, + 37.7587890625, -122.42578125 - ], + ], [ - 37.7587890625, + 37.7587890625, -122.4267578125 ] ] - }, - "type": "Feature", + }, + "type": "Feature", "properties": { - "hour": 9, - "trending_rank": 0, - "local_rank": 6, - "city_rank": 10, - "worldwide_rank": 6, + "hour": 9, + "trending_rank": 0, + "local_rank": 6, + "city_rank": 10, + "worldwide_rank": 6, "dayname": "sat" } - }, + }, { "geometry": { - "type": "Polygon", + "type": "Polygon", "coordinates": [ [ - 37.7587890625, + 37.7587890625, -122.4267578125 - ], + ], [ - 37.759765625, + 37.759765625, -122.4267578125 - ], + ], [ - 37.759765625, + 37.759765625, -122.42578125 - ], + ], [ - 37.7587890625, + 37.7587890625, -122.42578125 - ], + ], [ - 37.7587890625, + 37.7587890625, -122.4267578125 ] ] - }, - "type": "Feature", + }, + "type": "Feature", "properties": { - "hour": 10, - "trending_rank": 2, - "local_rank": 6, - "city_rank": 10, - "worldwide_rank": 6, + "hour": 10, + "trending_rank": 2, + "local_rank": 6, + "city_rank": 10, + "worldwide_rank": 6, "dayname": "sat" } - }, + }, { "geometry": { - "type": "Polygon", + "type": "Polygon", "coordinates": [ [ - 37.7587890625, + 37.7587890625, -122.4267578125 - ], + ], [ - 37.759765625, + 37.759765625, -122.4267578125 - ], + ], [ - 37.759765625, + 37.759765625, -122.42578125 - ], + ], [ - 37.7587890625, + 37.7587890625, -122.42578125 - ], + ], [ - 37.7587890625, + 37.7587890625, -122.4267578125 ] ] - }, - "type": "Feature", + }, + "type": "Feature", "properties": { - "hour": 11, - "trending_rank": -1, - "local_rank": 8, - "city_rank": 10, - "worldwide_rank": 8, + "hour": 11, + "trending_rank": -1, + "local_rank": 8, + "city_rank": 10, + "worldwide_rank": 8, "dayname": "sat" } - }, + }, { "geometry": { - "type": "Polygon", + "type": "Polygon", "coordinates": [ [ - 37.7587890625, + 37.7587890625, -122.4267578125 - ], + ], [ - 37.759765625, + 37.759765625, -122.4267578125 - ], + ], [ - 37.759765625, + 37.759765625, -122.42578125 - ], + ], [ - 37.7587890625, + 37.7587890625, -122.42578125 - ], + ], [ - 37.7587890625, + 37.7587890625, -122.4267578125 ] ] - }, - "type": "Feature", + }, + "type": "Feature", "properties": { - "hour": 12, - "trending_rank": 1, - "local_rank": 7, - "city_rank": 10, - "worldwide_rank": 7, + "hour": 12, + "trending_rank": 1, + "local_rank": 7, + "city_rank": 10, + "worldwide_rank": 7, "dayname": "sat" } - }, + }, { "geometry": { - "type": "Polygon", + "type": "Polygon", "coordinates": [ [ - 37.7587890625, + 37.7587890625, -122.4267578125 - ], + ], [ - 37.759765625, + 37.759765625, -122.4267578125 - ], + ], [ - 37.759765625, + 37.759765625, -122.42578125 - ], + ], [ - 37.7587890625, + 37.7587890625, -122.42578125 - ], + ], [ - 37.7587890625, + 37.7587890625, -122.4267578125 ] ] - }, - "type": "Feature", + }, + "type": "Feature", "properties": { - "hour": 13, - "trending_rank": 0, - "local_rank": 8, - "city_rank": 10, - "worldwide_rank": 8, + "hour": 13, + "trending_rank": 0, + "local_rank": 8, + "city_rank": 10, + "worldwide_rank": 8, "dayname": "sat" } - }, + }, { "geometry": { - "type": "Polygon", + "type": "Polygon", "coordinates": [ [ - 37.7587890625, + 37.7587890625, -122.4267578125 - ], + ], [ - 37.759765625, + 37.759765625, -122.4267578125 - ], + ], [ - 37.759765625, + 37.759765625, -122.42578125 - ], + ], [ - 37.7587890625, + 37.7587890625, -122.42578125 - ], + ], [ - 37.7587890625, + 37.7587890625, -122.4267578125 ] ] - }, - "type": "Feature", + }, + "type": "Feature", "properties": { - "hour": 14, - "trending_rank": 0, - "local_rank": 8, - "city_rank": 10, - "worldwide_rank": 8, + "hour": 14, + "trending_rank": 0, + "local_rank": 8, + "city_rank": 10, + "worldwide_rank": 8, "dayname": "sat" } - }, + }, { "geometry": { - "type": "Polygon", + "type": "Polygon", "coordinates": [ [ - 37.7587890625, + 37.7587890625, -122.4267578125 - ], + ], [ - 37.759765625, + 37.759765625, -122.4267578125 - ], + ], [ - 37.759765625, + 37.759765625, -122.42578125 - ], + ], [ - 37.7587890625, + 37.7587890625, -122.42578125 - ], + ], [ - 37.7587890625, + 37.7587890625, -122.4267578125 ] ] - }, - "type": "Feature", + }, + "type": "Feature", "properties": { - "hour": 15, - "trending_rank": 0, - "local_rank": 8, - "city_rank": 10, - "worldwide_rank": 8, + "hour": 15, + "trending_rank": 0, + "local_rank": 8, + "city_rank": 10, + "worldwide_rank": 8, "dayname": "sat" } - }, + }, { "geometry": { - "type": "Polygon", + "type": "Polygon", "coordinates": [ [ - 37.7587890625, + 37.7587890625, -122.4267578125 - ], + ], [ - 37.759765625, + 37.759765625, -122.4267578125 - ], + ], [ - 37.759765625, + 37.759765625, -122.42578125 - ], + ], [ - 37.7587890625, + 37.7587890625, -122.42578125 - ], + ], [ - 37.7587890625, + 37.7587890625, -122.4267578125 ] ] - }, - "type": "Feature", + }, + "type": "Feature", "properties": { - "hour": 16, - "trending_rank": 0, - "local_rank": 8, - "city_rank": 10, - "worldwide_rank": 8, + "hour": 16, + "trending_rank": 0, + "local_rank": 8, + "city_rank": 10, + "worldwide_rank": 8, "dayname": "sat" } - }, + }, { "geometry": { - "type": "Polygon", + "type": "Polygon", "coordinates": [ [ - 37.7587890625, + 37.7587890625, -122.4267578125 - ], + ], [ - 37.759765625, + 37.759765625, -122.4267578125 - ], + ], [ - 37.759765625, + 37.759765625, -122.42578125 - ], + ], [ - 37.7587890625, + 37.7587890625, -122.42578125 - ], + ], [ - 37.7587890625, + 37.7587890625, -122.4267578125 ] ] - }, - "type": "Feature", + }, + "type": "Feature", "properties": { - "hour": 17, - "trending_rank": 0, - "local_rank": 8, - "city_rank": 10, - "worldwide_rank": 8, + "hour": 17, + "trending_rank": 0, + "local_rank": 8, + "city_rank": 10, + "worldwide_rank": 8, "dayname": "sat" } - }, + }, { "geometry": { - "type": "Polygon", + "type": "Polygon", "coordinates": [ [ - 37.7587890625, + 37.7587890625, -122.4267578125 - ], + ], [ - 37.759765625, + 37.759765625, -122.4267578125 - ], + ], [ - 37.759765625, + 37.759765625, -122.42578125 - ], + ], [ - 37.7587890625, + 37.7587890625, -122.42578125 - ], + ], [ - 37.7587890625, + 37.7587890625, -122.4267578125 ] ] - }, - "type": "Feature", + }, + "type": "Feature", "properties": { - "hour": 18, - "trending_rank": 0, - "local_rank": 8, - "city_rank": 10, - "worldwide_rank": 8, + "hour": 18, + "trending_rank": 0, + "local_rank": 8, + "city_rank": 10, + "worldwide_rank": 8, "dayname": "sat" } - }, + }, { "geometry": { - "type": "Polygon", + "type": "Polygon", "coordinates": [ [ - 37.7587890625, + 37.7587890625, -122.4267578125 - ], + ], [ - 37.759765625, + 37.759765625, -122.4267578125 - ], + ], [ - 37.759765625, + 37.759765625, -122.42578125 - ], + ], [ - 37.7587890625, + 37.7587890625, -122.42578125 - ], + ], [ - 37.7587890625, + 37.7587890625, -122.4267578125 ] ] - }, - "type": "Feature", + }, + "type": "Feature", "properties": { - "hour": 19, - "trending_rank": 0, - "local_rank": 8, - "city_rank": 10, - "worldwide_rank": 8, + "hour": 19, + "trending_rank": 0, + "local_rank": 8, + "city_rank": 10, + "worldwide_rank": 8, "dayname": "sat" } - }, + }, { "geometry": { - "type": "Polygon", + "type": "Polygon", "coordinates": [ [ - 37.7587890625, + 37.7587890625, -122.4267578125 - ], + ], [ - 37.759765625, + 37.759765625, -122.4267578125 - ], + ], [ - 37.759765625, + 37.759765625, -122.42578125 - ], + ], [ - 37.7587890625, + 37.7587890625, -122.42578125 - ], + ], [ - 37.7587890625, + 37.7587890625, -122.4267578125 ] ] - }, - "type": "Feature", + }, + "type": "Feature", "properties": { - "hour": 20, - "trending_rank": 0, - "local_rank": 8, - "city_rank": 10, - "worldwide_rank": 8, + "hour": 20, + "trending_rank": 0, + "local_rank": 8, + "city_rank": 10, + "worldwide_rank": 8, "dayname": "sat" } - }, + }, { "geometry": { - "type": "Polygon", + "type": "Polygon", "coordinates": [ [ - 37.7587890625, + 37.7587890625, -122.4267578125 - ], + ], [ - 37.759765625, + 37.759765625, -122.4267578125 - ], + ], [ - 37.759765625, + 37.759765625, -122.42578125 - ], + ], [ - 37.7587890625, + 37.7587890625, -122.42578125 - ], + ], [ - 37.7587890625, + 37.7587890625, -122.4267578125 ] ] - }, - "type": "Feature", + }, + "type": "Feature", "properties": { - "hour": 21, - "trending_rank": -2, - "local_rank": 8, - "city_rank": 10, - "worldwide_rank": 8, + "hour": 21, + "trending_rank": -2, + "local_rank": 8, + "city_rank": 10, + "worldwide_rank": 8, "dayname": "sat" } - }, + }, { "geometry": { - "type": "Polygon", + "type": "Polygon", "coordinates": [ [ - 37.7587890625, + 37.7587890625, -122.4267578125 - ], + ], [ - 37.759765625, + 37.759765625, -122.4267578125 - ], + ], [ - 37.759765625, + 37.759765625, -122.42578125 - ], + ], [ - 37.7587890625, + 37.7587890625, -122.42578125 - ], + ], [ - 37.7587890625, + 37.7587890625, -122.4267578125 ] ] - }, - "type": "Feature", + }, + "type": "Feature", "properties": { - "hour": 22, - "trending_rank": 0, - "local_rank": 5, - "city_rank": 10, - "worldwide_rank": 6, + "hour": 22, + "trending_rank": 0, + "local_rank": 5, + "city_rank": 10, + "worldwide_rank": 6, "dayname": "sat" } - }, + }, { "geometry": { - "type": "Polygon", + "type": "Polygon", "coordinates": [ [ - 37.7587890625, + 37.7587890625, -122.4267578125 - ], + ], [ - 37.759765625, + 37.759765625, -122.4267578125 - ], + ], [ - 37.759765625, + 37.759765625, -122.42578125 - ], + ], [ - 37.7587890625, + 37.7587890625, -122.42578125 - ], + ], [ - 37.7587890625, + 37.7587890625, -122.4267578125 ] ] - }, - "type": "Feature", + }, + "type": "Feature", "properties": { - "hour": 23, - "trending_rank": 1, - "local_rank": 5, - "city_rank": 10, - "worldwide_rank": 5, + "hour": 23, + "trending_rank": 1, + "local_rank": 5, + "city_rank": 10, + "worldwide_rank": 5, "dayname": "sat" } } diff --git a/spec/fixtures/get_density_by_hour.json b/spec/fixtures/get_density_by_hour.json index 25426fe..b46139a 100644 --- a/spec/fixtures/get_density_by_hour.json +++ b/spec/fixtures/get_density_by_hour.json @@ -1,36 +1,36 @@ { "geometry": { - "type": "Polygon", + "type": "Polygon", "coordinates": [ [ - 37.7587890625, + 37.7587890625, -122.4267578125 - ], + ], [ - 37.759765625, + 37.759765625, -122.4267578125 - ], + ], [ - 37.759765625, + 37.759765625, -122.42578125 - ], + ], [ - 37.7587890625, + 37.7587890625, -122.42578125 - ], + ], [ - 37.7587890625, + 37.7587890625, -122.4267578125 ] ] - }, - "type": "Feature", + }, + "type": "Feature", "properties": { - "hour": 16, - "trending_rank": 0, - "local_rank": 8, - "city_rank": 10, - "worldwide_rank": 8, + "hour": 16, + "trending_rank": 0, + "local_rank": 8, + "city_rank": 10, + "worldwide_rank": 8, "dayname": "sat" } } diff --git a/spec/fixtures/get_history.json b/spec/fixtures/get_history.json index 2859bde..8db6010 100644 --- a/spec/fixtures/get_history.json +++ b/spec/fixtures/get_history.json @@ -1,12 +1,12 @@ { - "type": "GeometryCollection", + "type": "GeometryCollection", "geometries": [ { - "type": "Point", + "type": "Point", "coordinates": [ - -122.42608, + -122.42608, 37.759650000000001 - ], + ], "created": 1269832510 } ] diff --git a/spec/fixtures/get_nearby.json b/spec/fixtures/get_nearby.json index f579b46..2917618 100644 --- a/spec/fixtures/get_nearby.json +++ b/spec/fixtures/get_nearby.json @@ -1,81 +1,81 @@ { - "next_cursor": "QVSEifz7gri4J0w8FSQJ06Z5S5lOw6gZ75Co-fBbBQJEr7XMqN32bjMKNc9kwLKqKyqtVvxR_t5hgWW6XDgPnPTY", - "type": "FeatureCollection", + "next_cursor": "QVSEifz7gri4J0w8FSQJ06Z5S5lOw6gZ75Co-fBbBQJEr7XMqN32bjMKNc9kwLKqKyqtVvxR_t5hgWW6XDgPnPTY", + "type": "FeatureCollection", "features": [ { - "distance": 0, - "created": 1269832510, + "distance": 0, + "created": 1269832510, "geometry": { - "type": "Point", + "type": "Point", "coordinates": [ - -122.42608, + -122.42608, 37.759650000000001 ] - }, - "id": "5373629", + }, + "id": "5373629", "layerLink": { "href": "http://api.simplegeo.com/0.1/layer/com.simplegeo.global.geonames.json" - }, - "type": "Feature", + }, + "type": "Feature", "properties": { - "layer": "com.simplegeo.global.geonames", - "elevation": "22", - "gtopo30": "60", - "feature_code": "PRK", - "last_modified": "2006-01-15", - "country_code": "US", - "alternatenames": "", - "timezone": "America/Los_Angeles", - "population": "0", - "name": "Mission Dolores Park", - "feature_class": "L", - "cc2": "", - "admin1": "CA", - "admin3": "", - "admin2": "075", - "admin4": "", - "asciiname": "Mission Dolores Park", + "layer": "com.simplegeo.global.geonames", + "elevation": "22", + "gtopo30": "60", + "feature_code": "PRK", + "last_modified": "2006-01-15", + "country_code": "US", + "alternatenames": "", + "timezone": "America/Los_Angeles", + "population": "0", + "name": "Mission Dolores Park", + "feature_class": "L", + "cc2": "", + "admin1": "CA", + "admin3": "", + "admin2": "075", + "admin4": "", + "asciiname": "Mission Dolores Park", "type": "place" - }, + }, "selfLink": { "href": "http://api.simplegeo.com/0.1/records/com.simplegeo.global.geonames/5373629.json" } - }, + }, { - "distance": 57.557068918956581, - "created": 1269832039, + "distance": 57.557068918956581, + "created": 1269832039, "geometry": { - "type": "Point", + "type": "Point", "coordinates": [ - -122.42552999999999, + -122.42552999999999, 37.759369999999997 ] - }, - "id": "5352852", + }, + "id": "5352852", "layerLink": { "href": "http://api.simplegeo.com/0.1/layer/com.simplegeo.global.geonames.json" - }, - "type": "Feature", + }, + "type": "Feature", "properties": { - "layer": "com.simplegeo.global.geonames", - "elevation": "23", - "gtopo30": "60", - "feature_code": "CH", - "last_modified": "2006-01-15", - "country_code": "US", - "alternatenames": "", - "timezone": "America/Los_Angeles", - "population": "0", - "name": "Golden Gate Lutheran Church", - "feature_class": "S", - "cc2": "", - "admin1": "CA", - "admin3": "", - "admin2": "075", - "admin4": "", - "asciiname": "Golden Gate Lutheran Church", + "layer": "com.simplegeo.global.geonames", + "elevation": "23", + "gtopo30": "60", + "feature_code": "CH", + "last_modified": "2006-01-15", + "country_code": "US", + "alternatenames": "", + "timezone": "America/Los_Angeles", + "population": "0", + "name": "Golden Gate Lutheran Church", + "feature_class": "S", + "cc2": "", + "admin1": "CA", + "admin3": "", + "admin2": "075", + "admin4": "", + "asciiname": "Golden Gate Lutheran Church", "type": "place" - }, + }, "selfLink": { "href": "http://api.simplegeo.com/0.1/records/com.simplegeo.global.geonames/5352852.json" } diff --git a/spec/fixtures/get_record.json b/spec/fixtures/get_record.json index 59bcf7f..cab311d 100644 --- a/spec/fixtures/get_record.json +++ b/spec/fixtures/get_record.json @@ -1,32 +1,32 @@ { "type": "Feature", - "id": "5373629", - "created": 1269832510, + "id": "5373629", + "created": 1269832510, "geometry": { - "type": "Point", + "type": "Point", "coordinates": [ - -122.42608, + -122.42608, 37.759650000000001 ] - }, + }, "properties": { - "layer": "com.simplegeo.global.geonames", - "elevation": "22", - "gtopo30": "60", - "feature_code": "PRK", - "last_modified": "2006-01-15", - "country_code": "US", - "alternatenames": "", - "timezone": "America/Los_Angeles", - "population": "0", - "name": "Mission Dolores Park", - "feature_class": "L", - "cc2": "", - "admin1": "CA", - "admin3": "", - "admin2": "075", - "admin4": "", - "asciiname": "Mission Dolores Park", + "layer": "com.simplegeo.global.geonames", + "elevation": "22", + "gtopo30": "60", + "feature_code": "PRK", + "last_modified": "2006-01-15", + "country_code": "US", + "alternatenames": "", + "timezone": "America/Los_Angeles", + "population": "0", + "name": "Mission Dolores Park", + "feature_class": "L", + "cc2": "", + "admin1": "CA", + "admin3": "", + "admin2": "075", + "admin4": "", + "asciiname": "Mission Dolores Park", "type": "place" }, "layerLink": { diff --git a/spec/fixtures/get_records.json b/spec/fixtures/get_records.json index ae2c067..d2c6a5f 100644 --- a/spec/fixtures/get_records.json +++ b/spec/fixtures/get_records.json @@ -1,194 +1,194 @@ { - "type": "FeatureCollection", + "type": "FeatureCollection", "features": [ { - "created": 1271985142, + "created": 1271985142, "geometry": { - "type": "Point", + "type": "Point", "coordinates": [ - -122.419043, + -122.419043, 37.760350000000003 ] - }, - "id": "41530629", + }, + "id": "41530629", "layerLink": { "href": "http://api.simplegeo.com/0.1/layer/com.simplegeo.us.business.json" - }, - "type": "Feature", + }, + "type": "Feature", "properties": { - "carrier_route": "C036", - "pubdate": "2009-12-01", - "ll_match_level": "R", - "street_name": "Mission", - "std_name": "Beauty Bar", - "val_flag": "C", - "census_block_id": "002", + "carrier_route": "C036", + "pubdate": "2009-12-01", + "ll_match_level": "R", + "street_name": "Mission", + "std_name": "Beauty Bar", + "val_flag": "C", + "census_block_id": "002", "company_headings": [ { - "normalized_id": "138001000", - "condensed_name": "BARS GRILLS & PUBS", - "condensed_id": "138001000", - "normalized_name": "BARS GRILLS & PUBS", - "category_id": "138000000", + "normalized_id": "138001000", + "condensed_name": "BARS GRILLS & PUBS", + "condensed_id": "138001000", + "normalized_name": "BARS GRILLS & PUBS", + "category_id": "138000000", "category_name": "Bars, Taverns & Cocktail Lounges" } - ], + ], "company_sics": [ { - "sic_4": "7231", - "relevancy": "1", - "description": "BEAUTY SHOPS", - "naics": "812112", - "sic": "72310000", - "industry_class": "7", - "sic_4_description": "BEAUTY SHOPS", + "sic_4": "7231", + "relevancy": "1", + "description": "BEAUTY SHOPS", + "naics": "812112", + "sic": "72310000", + "industry_class": "7", + "sic_4_description": "BEAUTY SHOPS", "naics_description": "BEAUTY SALONS" - }, + }, { - "sic_4": "5813", - "relevancy": "2", - "description": "BAR (DRINKING PLACES)", - "naics": "72241", - "sic": "58130101", - "industry_class": "5", - "sic_4_description": "DRINKING PLACES", + "sic_4": "5813", + "relevancy": "2", + "description": "BAR (DRINKING PLACES)", + "naics": "72241", + "sic": "58130101", + "industry_class": "5", + "sic_4_description": "DRINKING PLACES", "naics_description": "DRINKING PLACES (ALCOHOLIC BEVERAGES)" - }, + }, { - "sic_4": "5812", - "relevancy": "3", - "description": "GRILLS, ( EATING PLACES)", - "naics": "722211", - "sic": "58120310", - "industry_class": "5", - "sic_4_description": "EATING PLACES", + "sic_4": "5812", + "relevancy": "3", + "description": "GRILLS, ( EATING PLACES)", + "naics": "722211", + "sic": "58120310", + "industry_class": "5", + "sic_4_description": "EATING PLACES", "naics_description": "LIMITED-SERVICE RESTAURANTS" } - ], - "city": "San Francisco", - "county_fips": "075", - "zip": "94110", - "mlsc": "4", - "dso": "1", - "state": "CA", - "dpv_confirm": "Y", - "exppubcity": "San Francisco", - "housenumber": "2299", - "msa": "7360", - "phone_number": "0323", - "exchange": "285", - "area_code": "415", - "censustract": "020800", - "state_fips": "06", - "street_type": "St", - "business_name": "Beauty Bar", - "plus4": "1811", - "val_date": "2010-03-22", - "type": "place", - "confidence_score": "100", - "time_zone": "4", - "cbsa": "41860", - "dpc": "996", + ], + "city": "San Francisco", + "county_fips": "075", + "zip": "94110", + "mlsc": "4", + "dso": "1", + "state": "CA", + "dpv_confirm": "Y", + "exppubcity": "San Francisco", + "housenumber": "2299", + "msa": "7360", + "phone_number": "0323", + "exchange": "285", + "area_code": "415", + "censustract": "020800", + "state_fips": "06", + "street_type": "St", + "business_name": "Beauty Bar", + "plus4": "1811", + "val_date": "2010-03-22", + "type": "place", + "confidence_score": "100", + "time_zone": "4", + "cbsa": "41860", + "dpc": "996", "company_phones": [ { - "phone_number": "0323", - "phone_type": "P", - "val_date": "2010-03-22", - "dnc": "", - "exchange": "285", - "areacode": "415", + "phone_number": "0323", + "phone_type": "P", + "val_date": "2010-03-22", + "dnc": "", + "exchange": "285", + "areacode": "415", "val_flag": "C" } - ], - "census_block_group": "2", + ], + "census_block_group": "2", "z4_type": "S" - }, + }, "selfLink": { "href": "http://api.simplegeo.com/0.1/records/com.simplegeo.us.business/41530629.json" } - }, + }, { - "created": 1271985146, + "created": 1271985146, "geometry": { - "type": "Point", + "type": "Point", "coordinates": [ - -122.420646, + -122.420646, 37.755470000000003 ] - }, - "id": "41531696", + }, + "id": "41531696", "layerLink": { "href": "http://api.simplegeo.com/0.1/layer/com.simplegeo.us.business.json" - }, - "type": "Feature", + }, + "type": "Feature", "properties": { - "carrier_route": "C010", - "pubdate": "2009-12-01", - "ll_match_level": "R", - "street_name": "22nd", - "std_name": "Latin American Club", - "val_flag": "C", - "census_block_id": "004", + "carrier_route": "C010", + "pubdate": "2009-12-01", + "ll_match_level": "R", + "street_name": "22nd", + "std_name": "Latin American Club", + "val_flag": "C", + "census_block_id": "004", "company_headings": [ { - "normalized_id": "138004000", - "condensed_name": "NIGHT CLUBS", - "condensed_id": "138004000", - "normalized_name": "NIGHT CLUBS", - "category_id": "138000000", + "normalized_id": "138004000", + "condensed_name": "NIGHT CLUBS", + "condensed_id": "138004000", + "normalized_name": "NIGHT CLUBS", + "category_id": "138000000", "category_name": "Bars, Taverns & Cocktail Lounges" } - ], + ], "company_sics": [ { - "sic_4": "5813", - "relevancy": "1", - "description": "NIGHT CLUBS", - "naics": "72241", - "sic": "58130200", - "industry_class": "5", - "sic_4_description": "DRINKING PLACES", + "sic_4": "5813", + "relevancy": "1", + "description": "NIGHT CLUBS", + "naics": "72241", + "sic": "58130200", + "industry_class": "5", + "sic_4_description": "DRINKING PLACES", "naics_description": "DRINKING PLACES (ALCOHOLIC BEVERAGES)" } - ], - "city": "San Francisco", - "county_fips": "075", - "zip": "94110", - "mlsc": "4", - "dso": "1", - "state": "CA", - "dpv_confirm": "Y", - "housenumber": "3286", - "msa": "7360", - "phone_number": "2732", - "exchange": "647", - "area_code": "415", - "censustract": "020800", - "state_fips": "06", - "street_type": "St", - "business_name": "Latin American Club", - "plus4": "3033", - "val_date": "2010-03-22", - "dnc": "T", - "type": "place", - "confidence_score": "100", - "time_zone": "4", - "cbsa": "41860", - "dpc": "862", + ], + "city": "San Francisco", + "county_fips": "075", + "zip": "94110", + "mlsc": "4", + "dso": "1", + "state": "CA", + "dpv_confirm": "Y", + "housenumber": "3286", + "msa": "7360", + "phone_number": "2732", + "exchange": "647", + "area_code": "415", + "censustract": "020800", + "state_fips": "06", + "street_type": "St", + "business_name": "Latin American Club", + "plus4": "3033", + "val_date": "2010-03-22", + "dnc": "T", + "type": "place", + "confidence_score": "100", + "time_zone": "4", + "cbsa": "41860", + "dpc": "862", "company_phones": [ { - "phone_number": "2732", - "phone_type": "P", - "val_date": "2010-03-22", - "dnc": "T", - "exchange": "647", - "areacode": "415", + "phone_number": "2732", + "phone_type": "P", + "val_date": "2010-03-22", + "dnc": "T", + "exchange": "647", + "areacode": "415", "val_flag": "C" } - ], - "census_block_group": "4", + ], + "census_block_group": "4", "z4_type": "S" - }, + }, "selfLink": { "href": "http://api.simplegeo.com/0.1/records/com.simplegeo.us.business/41531696.json" } diff --git a/spec/fixtures/layer_info.json b/spec/fixtures/layer_info.json index 3f8231d..eda580e 100644 --- a/spec/fixtures/layer_info.json +++ b/spec/fixtures/layer_info.json @@ -1,8 +1,8 @@ { - "callback_urls": [], - "name": "io.path.testlayer", + "callback_urls": [], + "name": "io.path.testlayer", "selfLink": { "href": "http://api.simplegeo.com/0.1/layer/io.path.testlayer.json" - }, + }, "public": false } diff --git a/spec/fixtures/nearby_address.json b/spec/fixtures/nearby_address.json index 0b944ee..bd3a0ee 100644 --- a/spec/fixtures/nearby_address.json +++ b/spec/fixtures/nearby_address.json @@ -1,21 +1,21 @@ { "geometry": { - "type": "Point", + "type": "Point", "coordinates": [ - -122.42608, + -122.42608, 37.759650000000001 ] - }, - "type": "Feature", + }, + "type": "Feature", "properties": { - "state_name": "California", - "street_number": "580", - "country": "US", - "street": "Dolores St", - "postal_code": "", - "county_name": "San Francisco", - "county_code": "075", - "state_code": "CA", + "state_name": "California", + "street_number": "580", + "country": "US", + "street": "Dolores St", + "postal_code": "", + "county_name": "San Francisco", + "county_code": "075", + "state_code": "CA", "place_name": "San Francisco" } } diff --git a/spec/fixtures/no_such_record.json b/spec/fixtures/no_such_record.json index 8e15e49..3063bd6 100644 --- a/spec/fixtures/no_such_record.json +++ b/spec/fixtures/no_such_record.json @@ -1,4 +1,4 @@ { - "message": "No such record.", + "message": "No such record.", "code": 404 } diff --git a/spec/fixtures/nonetype_not_iterable.json b/spec/fixtures/nonetype_not_iterable.json index e99f83b..da77ca3 100644 --- a/spec/fixtures/nonetype_not_iterable.json +++ b/spec/fixtures/nonetype_not_iterable.json @@ -1,4 +1,4 @@ { - "message": "'NoneType' object is not iterable", + "message": "'NoneType' object is not iterable", "code": 500 } diff --git a/spec/fixtures/overlaps.json b/spec/fixtures/overlaps.json index 00bf87e..875c100 100644 --- a/spec/fixtures/overlaps.json +++ b/spec/fixtures/overlaps.json @@ -1,6 +1,6 @@ [ { - "bounds": + "bounds": [ -122.998802, 42.002634, @@ -13,7 +13,7 @@ "name": "41029002300" }, { - "bounds": + "bounds": [ -123.858086, 41.995095999999997, @@ -26,7 +26,7 @@ "name": "41033361600" }, { - "bounds": + "bounds": [ -123.231629, 42.003022000000001, diff --git a/spec/fixtures/places_category_and_q.json b/spec/fixtures/places_category_and_q.json index f7d43b6..e73d327 100644 --- a/spec/fixtures/places_category_and_q.json +++ b/spec/fixtures/places_category_and_q.json @@ -17,7 +17,7 @@ "city" : "Holland", "name" : "Dutch Subway LLC", "tags": [ - + ], "country" : "US", "phone" : "+1 616 393 7991", diff --git a/spec/fixtures/places_q.json b/spec/fixtures/places_q.json index c4866b6..ca65698 100644 --- a/spec/fixtures/places_q.json +++ b/spec/fixtures/places_q.json @@ -178,7 +178,7 @@ "city" : "Holland", "name" : "Dutch Subway LLC", "tags": [ - + ], "country" : "US", "phone" : "+1 616 393 7991", @@ -303,7 +303,7 @@ "city" : "Zeeland", "name" : "Dutch Treat Camping & Rec", "tags": [ - + ], "country" : "US", "phone" : "+1 616 772 4303", @@ -334,7 +334,7 @@ "city" : "Holland", "name" : "Dutch Delft Blue", "tags": [ - + ], "country" : "US", "phone" : "+1 616 399 1803",