PlaceController#
- class pyinaturalist.controllers.PlaceController(client)#
Bases:
pyinaturalist.controllers.base_controller.BaseController
Controller for Place requests
Methods
- __init__(client)#
- autocomplete(q=None, **params)#
Given a query string, get places with names starting with the search term
Notes
API reference: GET /places/autocomplete
This endpoint accepts a
per_page
param, up to a max of 20 (default 10)Pages beyond the first page cannot be retrieved. Use
page=all
to attempt to retrieve additional results. Seepaginate_autocomplete()
for more info.
- from_ids(*place_ids, **params)#
Get places by ID
- nearby(nelat, nelng, swlat, swlng, **params)#
Search for places near a given location
Notes
API reference: GET /places/nearby
- Parameters
- Return type