fetchStreetViewData

suspend fun fetchStreetViewData(latLng: LatLng, apiKey: String, source: Source = Source.DEFAULT): Status

This function will check whether a location is available on StreetView or not.

Return

A Status value specifying if the location is available on Street View or not, whether the used key is a right one, or any other error.

Parameters

latLng

The LatLng object representing the location for which you want to fetch Street View data.

apiKey

The API key for Google Maps services.

source

The source of the Street View panorama. It is optional parameter and default value is Source.DEFAULT

  • Source.DEFAULT: Use the default Street View source.

  • Source.OUTDOOR: Use the outdoor Street View source.