Skip to content

Instantly share code, notes, and snippets.

@jraczak
Created September 17, 2014 01:23
Show Gist options
  • Save jraczak/37db2f4236d067671de4 to your computer and use it in GitHub Desktop.
Save jraczak/37db2f4236d067671de4 to your computer and use it in GitHub Desktop.
2014-09-17T01:21:00.235370+00:00 app[web.1]: Started GET "/venues/search?utf8=%E2%9C%93&q=burgers&zip=san+francisco+ca" for 75.101.56.109 at 2014-09-17 01:21:00 +0000
2014-09-17T01:21:00.241916+00:00 app[web.1]: Parameters: {"utf8"=>"✓", "q"=>"burgers", "zip"=>"san francisco ca"}
2014-09-17T01:21:00.288485+00:00 app[web.1]: Google geocoding. address: san francisco ca, args []
2014-09-17T01:21:00.241880+00:00 app[web.1]: Processing by VenuesController#search as HTML
2014-09-17T01:21:00.288332+00:00 app[web.1]:
2014-09-17T01:21:00.235334+00:00 app[web.1]:
2014-09-17T01:21:00.366311+00:00 app[web.1]: Google geocoding. Result: %7B%0A+++%22results%22+%3A+%5B%0A++++++%7B%0A+++++++++%22address_components%22+%3A+%5B%0A++++++++++++%7B%0A+++++++++++++++%22long_name%22+%3A+%22San+Francisco%22%2C%0A+++++++++++++++%22short_name%22+%3A+%22SF%22%2C%0A+++++++++++++++%22types%22+%3A+%5B+%22locality%22%2C+%22political%22+%5D%0A++++++++++++%7D%2C%0A++++++++++++%7B%0A+++++++++++++++%22long_name%22+%3A+%22San+Francisco+County%22%2C%0A+++++++++++++++%22short_name%22+%3A+%22San+Francisco+County%22%2C%0A+++++++++++++++%22types%22+%3A+%5B+%22administrative_area_level_2%22%2C+%22political%22+%5D%0A++++++++++++%7D%2C%0A++++++++++++%7B%0A+++++++++++++++%22long_name%22+%3A+%22California%22%2C%0A+++++++++++++++%22short_name%22+%3A+%22CA%22%2C%0A+++++++++++++++%22types%22+%3A+%5B+%22administrative_area_level_1%22%2C+%22political%22+%5D%0A++++++++++++%7D%2C%0A++++++++++++%7B%0A+++++++++++++++%22long_name%22+%3A+%22United+States%22%2C%0A+++++++++++++++%22short_name%22+%3A+%22US%22%2C%0A+++++++++++++++%22types%22+%3A+%5B+%22country%22%2C+%22political%22+%5D%0A++++++++++++%7D%0A+++++++++%5D%2C%0A+++++++++%22formatted_address%22+%3A+%22San+Francisco%2C+CA%2C+USA%22%2C%0A+++++++++%22geometry%22+%3A+%7B%0A++++++++++++%22bounds%22+%3A+%7B%0A+++++++++++++++%22northeast%22+%3A+%7B%0A++++++++++++++++++%22lat%22+%3A+37.9297707%2C%0A++++++++++++++++++%22lng%22+%3A+-122.3279149%0A+++++++++++++++%7D%2C%0A+++++++++++++++%22southwest%22+%3A+%7B%0A++++++++++++++++++%22lat%22+%3A+37.6933354%2C%0A++++++++++++++++++%22lng%22+%3A+-123.1077733%0A+++++++++++++++%7D%0A++++++++++++%7D%2C%0A++++++++++++%22location%22+%3A+%7B%0A+++++++++++++++%22lat%22+%3A+37.7749295%2C%0A+++++++++++++++%22lng%22+%3A+-122.4194155%0A++++++++++++%7D%2C%0A++++++++++++%22location_type%22+%3A+%22APPROXIMATE%22%2C%0A++++++++++++%22viewport%22+%3A+%7B%0A+++++++++++++++%22northeast%22+%3A+%7B%0A++++++++++++++++++%22lat%22+%3A+37.812%2C%0A++++++++++++++++++%22lng%22+%3A+-122.3482%0A+++++++++++++++%7D%2C%0A+++++++++++++++%22southwest%22+%3A+%7B%0A++++++++++++++++++%22lat%22+%3A+37.70339999999999%2C%0A++++++++++++++++++%22lng%22+%3A+-122.527%0A+++++++++++++++%7D%0A++++++++++++%7D%0A+++++++++%7D%2C%0A+++++++++%22types%22+%3A+%5B+%22locality%22%2C+%22political%22+%5D%0A++++++%7D%0A+++%5D%2C%0A+++%22status%22+%3A+%22OK%22%0A%7D%0A
2014-09-17T01:21:00.398975+00:00 app[web.1]: Venue Load (5.5ms) SELECT "venues".* FROM "venues" WHERE "venues"."id" IN (31479, 34386, 29654, 33424, 35203, 34681, 26306, 50476, 29738, 34841, 53779, 32275, 27893, 25322, 50693, 32267, 40632, 36661, 34598, 29986, 32277, 25213, 34939, 31262, 35391, 36720, 28766, 34068, 32873, 27365)
2014-09-17T01:21:00.288280+00:00 app[web.1]: Google Geocoding API error: request denied.
2014-09-17T01:21:00.242921+00:00 app[web.1]: The zip code is present
2014-09-17T01:21:00.391145+00:00 app[web.1]: SOLR Request (22.6ms) [ path=select parameters={fq: ["type:Venue", "{!geofilt sfield=location_ll pt=37.7749295,-122.4194155 d=12.427999999999999}"], sort: "geodist(location_ll,37.7749295,-122.4194155) asc", q: "burgers", fl: "* score", qf: "name_text^5.0 name_without_punc_text^5.0 category_text^3.5 tips_text", defType: "edismax", mm: 2, start: 0, rows: 30} ]
2014-09-17T01:21:00.775595+00:00 app[web.1]: Rendered shared/_pie_graph.html.erb (0.5ms)
2014-09-17T01:21:00.583195+00:00 app[web.1]: VenueCategory Load (1.3ms) SELECT "venue_categories".* FROM "venu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment