getNearestPanoId
Gets the panoIds for the given cartographic location. See https://developers.google.com/maps/documentation/tile/streetview#panoid-search.
const provider = await GoogleStreetViewCubeMapPanoramaProvider.fromUrl({
key: 'your Google Streetview Static api key'
})
const panoIds = provider.getNearestPanoId(position);Content copied to clipboard
Return
an object containing a panoId, latitude, and longitude of the closest panorama
Parameters
position
The position to search for the nearest panoId.
radius
The radius in meters to search for the nearest panoId. Default value - 50