Skip to content

Commit

Permalink
removing bbox filter parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
thekaveman committed Feb 6, 2019
1 parent f68ec46 commit 5e1a8aa
Showing 1 changed file with 2 additions and 20 deletions.
22 changes: 2 additions & 20 deletions mds/api/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ def get_status_changes(
providers=None,
start_time=None,
end_time=None,
bbox=None,
paging=True,
rate_limit=0,
**kwargs):
Expand All @@ -158,14 +157,6 @@ def get_status_changes(
:end_time: Filters for status changes where `event_time` occurs before the given time
Should be a datetime object or numeric representation of UNIX seconds
:bbox: Filters for status changes where `event_location` is within defined bounding-box.
The order is defined as: southwest longitude, southwest latitude,
northeast longitude, northeast latitude (separated by commas).
e.g.
bbox=-122.4183,37.7758,-122.4120,37.7858
:paging: True (default) to follow paging and request all available data.
False to request only the first page.
Expand All @@ -182,7 +173,7 @@ def get_status_changes(

# gather all the params together
params = {
**dict(start_time=start_time, end_time=end_time, bbox=bbox),
**dict(start_time=start_time, end_time=end_time),
**kwargs
}

Expand All @@ -198,7 +189,6 @@ def get_trips(
vehicle_id=None,
min_end_time=None,
max_end_time=None,
bbox=None,
paging=True,
rate_limit=0,
**kwargs):
Expand All @@ -220,14 +210,6 @@ def get_trips(
:max_end_time: Filters for trips where `end_time` occurs before the given time.
Should be a datetime object or numeric representation of UNIX seconds
:bbox: Filters for trips where and point within `route` is within defined bounding-box.
The order is defined as: southwest longitude, southwest latitude,
northeast longitude, northeast latitude (separated by commas).
e.g.
bbox=-122.4183,37.7758,-122.4120,37.7858
:paging: True (default) to follow paging and request all available data.
False to request only the first page.
Expand All @@ -253,7 +235,7 @@ def get_trips(

# gather all the params togethers
params = {
**dict(device_id=device_id, vehicle_id=vehicle_id, min_end_time=min_end_time, max_end_time=max_end_time, bbox=bbox),
**dict(device_id=device_id, vehicle_id=vehicle_id, min_end_time=min_end_time, max_end_time=max_end_time),
**kwargs
}

Expand Down

0 comments on commit 5e1a8aa

Please sign in to comment.