snapmap

package
v0.0.0-...-54cee2b Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2020 License: MIT Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const SnapmapApiBaseUrl = "https://ms.sc-jpl.com/web"

Variables

View Source
var API_BASE_URL = "https://ms.sc-jpl.com/web/"

Functions

This section is empty.

Types

type Client

type Client struct {
	EpochService    *EpochService
	PlaylistService *PlaylistService
	TileSetService  *TileSetService
	// contains filtered or unexported fields
}

func NewClient

func NewClient(client *http.Client) *Client

type EpochResponse

type EpochResponse struct {
}

type EpochService

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

func (*EpochService) GetEpoch

func (e *EpochService) GetEpoch(target interface{}, setType TileSetType) error

type GeoPoint

type GeoPoint struct {
	Latitude  float32 `json:"lat"`
	Longitude float32 `json:"lon"`
}

type GeoService

type GeoService struct {
}

type PlaylistRequestBody

type PlaylistRequestBody struct {
	RequestGeoPoint GeoPoint  `json:"requestGeoPoint"`
	ZoomLevel       int       `json:"zoomLevel"`
	TileSetId       TileSetId `json:"tileSetId"`
	RadiusMeters    int       `json:"radiusMeters"`
}

type PlaylistResponse

type PlaylistResponse struct {
	Manifest struct {
		Elements []SnapElement `json:"elements"`
	} `json:"manifest"`
}

type PlaylistService

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

func (*PlaylistService) GetPlaylist

func (p *PlaylistService) GetPlaylist(latitude float32, longitude float32, radiusInMeters int, zoomLevel int, id TileSetId) (*PlaylistResponse, error)

type Response

type Response struct {
	RenderConfig struct {
		HeatmapGradient       interface{} `json:"heatmapGradient"`
		HeatNormalizationPeak int         `json:"heatNormalizationPeak"`
		FuzzNormalizationPeak float32     `json:"fuzzNormalizationPeak"`
		HeatPointBaseRadius   int         `json:"heatPointBaseRadius"`
	} `json:"renderConfig"`

	TileSetInfos []TileSetInfo `json:"tileSetInfos"`
}

type SnapElement

type SnapElement struct {
	Id        string   `json:"id"`
	Duration  float32  `json:"duration"`
	Timestamp string   `json:"timestamp"`
	SnapInfo  SnapInfo `json:"snapInfo"`
}

type SnapInfo

type SnapInfo struct {
	SnapMediaTitle string `json:"snapMediaTitle"`
	Title          struct {
		Fallback string `json:"fallback"`
	} `json:"title"`
	StreamingMediaInfo struct {
		PrefixUrl string `json:"prefixUrl"`
		MediaUrl  string `json:"mediaUrl"`
	} `json:"streamingMediaInfo"`
}

type TileSetId

type TileSetId struct {
	Type   string `json:"type"`
	Flavor string `json:"flavor"`
	Epoch  string `json:"epoch"`
}

type TileSetInfo

type TileSetInfo struct {
	Id             TileSetId   `json:"id"`
	State          string      `json:"state"`
	StartTime      int         `json:"startTime"`
	LastUpdateTime int         `json:"lastUpdateTime"`
	PoiTileSetInfo interface{} `json:"poiTileSetInfo"`
}

type TileSetService

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

func (*TileSetService) GetLatest

func (t *TileSetService) GetLatest(target *Response) error

type TileSetType

type TileSetType string
const (
	HeatTileSetType            TileSetType = "HEAT"
	PointOfInterestTileSetType TileSetType = "POI"
)

Jump to

Keyboard shortcuts

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