View source: R/brapi_get_locations.R
| brapi_get_locations | R Documentation |
Get a filtered list of Locations
brapi_get_locations( con = NULL, locationType = "", locationDbId = "", externalReferenceID = "", externalReferenceSource = "", page = 0, pageSize = 1000 )
con |
list; required: TRUE; BrAPI connection object |
locationType |
character; required: FALSE; Filter by location type specified. |
locationDbId |
character; required: FALSE; Filter by location DbId |
externalReferenceID |
character; required: FALSE; An external reference
ID. Could be a simple string or a URI. (use with |
externalReferenceSource |
character; required: FALSE; An identifier for
the source system or database of an external reference (use with
|
page |
integer; required: FALSE; Used to request a specific page of data
to be returned. The page indexing starts at 0 (the first page is 'page'= 0)
. Default is |
pageSize |
integer; required: FALSE; The size of the pages to be
returned. Default is |
Get a list of locations.
The countryCode is as per ISO_3166-1_alpha-3 spec.
coordinates are specified as longitude, latitude (in this specific order).
altitude (optional third parameter to coordinates) is in meters.
data.frame
Maikel Verouden
Other brapi-core:
brapi_get_commoncropnames(),
brapi_get_lists_listDbId(),
brapi_get_lists(),
brapi_get_locations_locationDbId(),
brapi_get_people_personDbId(),
brapi_get_people(),
brapi_get_programs_programDbId(),
brapi_get_programs(),
brapi_get_search_lists_searchResultsDbId(),
brapi_get_search_locations_searchResultsDbId(),
brapi_get_search_people_searchResultsDbId(),
brapi_get_search_programs_searchResultsDbId(),
brapi_get_search_studies_searchResultsDbId(),
brapi_get_search_trials_searchResultsDbId(),
brapi_get_seasons_seasonDbId(),
brapi_get_seasons(),
brapi_get_serverinfo(),
brapi_get_studies_studyDbId(),
brapi_get_studies(),
brapi_get_studytypes(),
brapi_get_trials_trialDbId(),
brapi_get_trials(),
brapi_post_lists_listDbId_items(),
brapi_post_lists(),
brapi_post_locations(),
brapi_post_people(),
brapi_post_programs(),
brapi_post_search_lists(),
brapi_post_search_locations(),
brapi_post_search_people(),
brapi_post_search_programs(),
brapi_post_search_studies(),
brapi_post_search_trials(),
brapi_post_seasons(),
brapi_post_studies(),
brapi_post_trials(),
brapi_put_lists_listDbId(),
brapi_put_locations_locationDbId(),
brapi_put_people_personDbId(),
brapi_put_programs_programDbId(),
brapi_put_seasons_seasonDbId(),
brapi_put_studies_studyDbId(),
brapi_put_trials_trialDbId()
Other Locations:
brapi_get_locations_locationDbId(),
brapi_get_search_locations_searchResultsDbId(),
brapi_post_locations(),
brapi_post_search_locations(),
brapi_put_locations_locationDbId()
## Not run: con <- brapi_db()$testserver brapi_get_locations(con = con) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.