api

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 2, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EmptyImage *image.RGBA = image.NewRGBA(
	image.Rectangle{
		image.Point{0, 0},
		image.Point{0, 0},
	},
)
View Source
var GenData = map[int]EachgenData{
	1: {
		// contains filtered or unexported fields
	},
	2: {
		// contains filtered or unexported fields
	},

	4: {
		// contains filtered or unexported fields
	},
}
View Source
var InvalidSVURLError error = errors.New("Invalid Streetview URL!")
View Source
var InvalidURLError error = errors.New("Invalid URL!")
View Source
var PanoidDoesNotExistError = errors.New("panoid does not exist!")

Functions

func GetGeneration

func GetGeneration(panoid string) (int, error)

returns 0, error if it returned an error. both gen 2 and gen 3 will return 2, nil (because they have the same resolution)

func GetImages

func GetImages(panoid string) (*image.RGBA, error)

func ShortlinkToPanoid

func ShortlinkToPanoid(url string) (string, error)

Types

type EachgenData

type EachgenData struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL