A Street View request to be sent with getPanorama. StreetViewLocationRequest lets you search for a Street View panoroma at a specified location.

interface StreetViewLocationRequest {
    location?: null | LatLng | LatLngLiteral;
    preference?: null | StreetViewPreference;
    radius?: null | number;
    source?: null | StreetViewSource;
    sources?: null | Iterable<StreetViewSource, any, any>;
}

Properties

location?: null | LatLng | LatLngLiteral

Specifies the location where to search for a Street View panorama.

preference?: null | StreetViewPreference

Sets a preference for which panorama should be found within the radius: the one nearest to the provided location, or the best one within the radius.

radius?: null | number

Sets a radius in meters in which to search for a panorama.

<code>50</code>
source?: null | StreetViewSource

Specifies the source of panoramas to search. This allows a restriction to search for just outdoor panoramas for example.

Use sources instead.

sources?: null | Iterable<StreetViewSource, any, any>

Specifies the sources of panoramas to search. This allows a restriction to search for just outdoor panoramas for example. Setting multiple sources will be evaluated as the intersection of those sources.