Options
All
  • Public
  • Public/Protected
  • All
Menu

Options that bias a search result towards returning a Street View panorama that is nearest to the request location, or a panorama that is considered most likely to be what the user wants to see. Specify these by value, or by using the constant's name. For example, 'best' or google.maps.StreetViewPreference.BEST.

Access by calling const {StreetViewPreference} = await google.maps.importLibrary("streetView"). See https://developers.google.com/maps/documentation/javascript/libraries.

Index

Enumeration Members

Enumeration Members

BEST: "best"

Return the Street View panorama that is considered most likely to be what the user wants to see. The best result is determined by algorithms based on user research and parameters such as recognised points of interest, image quality, and distance from the given location.

NEAREST: "nearest"

Return the Street View panorama that is the shortest distance from the provided location. This works well only within a limited radius. The recommended radius is 1km or less.

Generated using TypeDoc