using System; using UnityEngine; namespace Adrenak.UniMap { public class StreetView { /// /// The 6 sides that the street view returns results for. /// public enum Face { Front, Right, Back, Left, Up, Down, } /// /// The source of the Street View search results /// public enum Source { Outdoor, Default } /// /// The mode of settings the destination for the street view. /// calls the API with a latitude and longitude value where the Street View should be serached /// calls the API with a text query where the text contains the name of the place /// calls the API for a specific Panorama ID. /// public enum Mode { Coordinates, Location, PanoID } [Serializable] public class Options { [Header("Main Settings")] /// /// The Google Maps API key. Get this on the Google developer portal /// public string key; /// /// The mode used to call the API. for more information /// public Mode mode; /// /// The Location object that represents the coordinates where the Street View search should take place /// Used only if is set to /// [Header("If Mode is set to Coordinates")] public Location location; /// /// The PanoID that should be requested by the API. /// Used only if is set to /// [Header("If Mode is set to PanoID")] public string panoID = string.Empty; /// /// The place that should be queried for a StreetView /// Used only if is set to /// [Header("If Mode is set to Location")] public string place = string.Empty; [Header("Other Settings")] /// /// The field of view of the panoramic images fetch. Default is 90. /// public float fov = 90; /// /// The direction of the camera in degrees. Like a compass. /// public int heading = 0; /// /// (default:50) Sets a radius, specified in meters, in which to search for a panorama, /// centered on the given latitude and longitude. Valid values are non-negative integers. /// public int radius = 50; /// /// (Default:0) Specifies the up or down angle of the camera relative to the Street View vehicle. /// public int pitch = 0; /// /// (Default:) The type to be used for the API call /// public Source source = Source.Default; /// /// (default:512) The resolution of the face textures downloaded. GOOGLE API LIMITS THIS TO 640px. IF YOU WANT HIGH RES USE PANODOWNLOADER /// public int resolution = 512; } } }