location property
The location
parameter, in conjunction with the locationRadius
parameter, defines a circular geographic area and also restricts a search
to videos that specify, in their metadata, a geographic location that
falls within that area. The parameter value is a string that specifies
latitude/longitude coordinates e.g. (37.42307,-122.08427
).
string
- The
location
parameter value identifies the point at the center of the area. - The
locationRadius
parameter specifies the maximum distance that the location associated with a video can be from that point for the video to still be included in the search results.
The API returns an error if your request specifies a value for the
location
parameter but does not also specify a value for the
locationRadius
parameter.
Note: If you specify a value for this parameter, you must also set the
type
parameter's value to video
.
Implementation
final String? location;