@@ -113,11 +113,11 @@ def _item_url(self, item_type, item_id):
113
113
114
114
async def search (self ,
115
115
item_types : List [str ],
116
- geometry : Optional [dict ] = None ,
117
116
search_filter : Optional [dict ] = None ,
118
117
name : Optional [str ] = None ,
119
118
sort : Optional [str ] = None ,
120
- limit : int = 100 ) -> AsyncIterator [dict ]:
119
+ limit : int = 100 ,
120
+ geometry : Optional [dict ] = None ) -> AsyncIterator [dict ]:
121
121
"""Iterate over results from a quick search.
122
122
123
123
Quick searches are saved for a short period of time (~month). The
@@ -136,10 +136,10 @@ async def search(self,
136
136
sort: Field and direction to order results by. Valid options are
137
137
given in SEARCH_SORT.
138
138
name: The name of the saved search.
139
- geometry: GeoJSON, a feature reference or a list of feature
140
- references
141
139
limit: Maximum number of results to return. When set to 0, no
142
140
maximum is applied.
141
+ geometry: GeoJSON, a feature reference or a list of feature
142
+ references
143
143
144
144
Yields:
145
145
Description of an item.
@@ -173,12 +173,14 @@ async def search(self,
173
173
async for i in Items (response , self ._session .request , limit = limit ):
174
174
yield i
175
175
176
- async def create_search (self ,
177
- item_types : List [str ],
178
- search_filter : dict ,
179
- name : str ,
180
- geometry : Optional [dict ] = None ,
181
- enable_email : bool = False ) -> dict :
176
+ async def create_search (
177
+ self ,
178
+ item_types : List [str ],
179
+ search_filter : dict ,
180
+ name : str ,
181
+ enable_email : bool = False ,
182
+ geometry : Optional [dict ] = None ,
183
+ ) -> dict :
182
184
"""Create a new saved structured item search.
183
185
184
186
To filter to items you have access to download which are of standard
@@ -199,10 +201,10 @@ async def create_search(self,
199
201
200
202
Parameters:
201
203
item_types: The item types to include in the search.
202
- geometry: A feature reference or a GeoJSON
203
204
search_filter: Structured search criteria.
204
205
name: The name of the saved search.
205
206
enable_email: Send a daily email when new results are added.
207
+ geometry: A feature reference or a GeoJSON
206
208
207
209
Returns:
208
210
Description of the saved search.
@@ -233,17 +235,17 @@ async def update_search(self,
233
235
item_types : List [str ],
234
236
search_filter : dict ,
235
237
name : str ,
236
- geometry : Optional [ dict ] = None ,
237
- enable_email : bool = False ) -> dict :
238
+ enable_email : bool = False ,
239
+ geometry : Optional [ dict ] = None ) -> dict :
238
240
"""Update an existing saved search.
239
241
240
242
Parameters:
241
243
search_id: Saved search identifier.
242
244
item_types: The item types to include in the search.
243
- geometry: A feature reference or a GeoJSON
244
245
search_filter: Structured search criteria.
245
246
name: The name of the saved search.
246
247
enable_email: Send a daily email when new results are added.
248
+ geometry: A feature reference or a GeoJSON
247
249
248
250
Returns:
249
251
Description of the saved search.
0 commit comments