Exemplo n.º 1
0
        /// <summary>
        /// Gets the URL to the point's metadata
        /// </summary>
        /// <param name="firstParty">Whether to search for first party panoramas</param>
        /// <param name="searchRadius">The search radius in metres</param>
        /// <returns>The URL of the metadata</returns>
        public string MetadataURL(bool firstParty = false, uint searchRadius = DefaultSearchRadius)
        {
            string url = string.Format("https://maps.googleapis.com/maps/api/streetview/metadata?location={0},{1}&radius={2}", Latitude, Longitude, searchRadius);

            if (firstParty)
            {
                url += "&source=outdoor";
            }
            return(URL.Sign(url));
        }
Exemplo n.º 2
0
 /// <summary>
 /// Gets the URL to the image of the PanoID
 /// </summary>
 /// <param name="bearing">The bearing of the image</param>
 /// <param name="pitch">The pitch of the image</param>
 /// <param name="res">The resolution of the image</param>
 /// <param name="fov">The field of view of the image</param>
 /// <returns>The Streetview Static API image URL</returns>
 public string ImageURL(Bearing bearing, double pitch, Resolution res, int fov) =>
 URL.Sign(string.Format("https://maps.googleapis.com/maps/api/streetview?size={0}x{1}&pano={2}&heading={3}&pitch={4}&fov={5}", res.Width, res.Height, ID, bearing, pitch, fov));
Exemplo n.º 3
0
 /// <summary>
 /// The Streetview static API image URL
 /// </summary>
 /// <param name="pitch">The pitch of the image</param>
 /// <param name="res">The resolution of the image</param>
 /// <param name="fov">The field of view of the image</param>
 /// <returns>The Streetview static API image URL</returns>
 public string ImageURL(double pitch, Resolution res, int fov, bool firstParty = false, uint searchRadius = DefaultSearchRadius) =>
 URL.Sign("https://maps.googleapis.com/maps/api/streetview?size=" + res.Width + "x" + res.Height + "&location=" + Latitude + "," + Longitude + "&heading=" + Bearing + "&pitch=" + pitch + "&fov=" + fov + "&radius=" + searchRadius + (firstParty ? "&source=outdoor" : ""));