lib/ptv_timetable/api.rb in ptv_timetable-0.0.1 vs lib/ptv_timetable/api.rb in ptv_timetable-0.0.2

- old
+ new

@@ -19,14 +19,13 @@ def near_me(latitude, longitude) signed_request("/v2/nearme/latitude/#{latitude}/longitude/#{longitude}") end - def points_of_interest(latitude1, longitude1, latitude2, longitude2) - poi = '0,1,2,3,4,100' - grid_depth = 3 - limit = 6 - signed_request("/v2/poi/#{poi}/lat1/#{latitude1}/long1/#{longitude1}/lat2/#{latitude2}/long2/#{latitude2}/griddepth/#{grid_depth}/limit/#{limit}") + def points_of_interest(latitude1, longitude1, latitude2, longitude2, poi = '0,1,2,3,4,100') + grid_depth = 0 + limit = 30 + signed_request("/v2/poi/#{poi}/lat1/#{latitude1}/long1/#{longitude1}/lat2/#{latitude2}/long2/#{longitude2}/griddepth/#{grid_depth}/limit/#{limit}") end def search(text) signed_request("/v2/search/#{text}") end