| MediaSearch Method (Double, Double, NullableInt32, NullableDateTime, NullableDateTime) |
Search for media in a given area.
Requires Authentication: False
Namespace: InstaSharp.EndpointsAssembly: InstaSharp (in InstaSharp.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax public Task<MediasResponse> Search(
double latitude,
double longitude,
Nullable<int> distance,
Nullable<DateTime> minTimestamp,
Nullable<DateTime> maxTimestamp
)
Public Function Search (
latitude As Double,
longitude As Double,
distance As Nullable(Of Integer),
minTimestamp As Nullable(Of DateTime),
maxTimestamp As Nullable(Of DateTime)
) As Task(Of MediasResponse)
public:
Task<MediasResponse^>^ Search(
double latitude,
double longitude,
Nullable<int> distance,
Nullable<DateTime> minTimestamp,
Nullable<DateTime> maxTimestamp
)
member Search :
latitude : float *
longitude : float *
distance : Nullable<int> *
minTimestamp : Nullable<DateTime> *
maxTimestamp : Nullable<DateTime> -> Task<MediasResponse>
Parameters
- latitude
- Type: SystemDouble
Latitude of the center search coordinate. If used, longitude is required. - longitude
- Type: SystemDouble
Longitude of the center search coordinate. If used, latitude is required. - distance
- Type: SystemNullableInt32
Default is 1km (distance=1000), max distance is 5km. - minTimestamp
- Type: SystemNullableDateTime
All media returned will be taken later than this timestamp. - maxTimestamp
- Type: SystemNullableDateTime
All media returned will be taken earlier than this timestamp.
Return Value
Type:
TaskMediasResponse
Media Response
See Also