place

package
v1.38.1 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RelatedLocationsPrefixMap = map[bool]map[bool]string{
	// contains filtered or unexported fields
}

RelatedLocationsPrefixMap is a map from different scenarios to key prefix for RelatedLocations cache.

The three levels of keys are: - Whether related locations have the same ancestor. - Whether related locations have the same place type. - Whether closeness computaion is per capita.

Functions

func GetLocationsRankings

func GetLocationsRankings(
	ctx context.Context,
	in *pb.GetLocationsRankingsRequest,
	store *store.Store,
) (*pb.GetLocationsRankingsResponse, error)

GetLocationsRankings implements API for Mixer.GetLocationsRankings.

func GetPlaceMetadataHelper added in v1.34.0

func GetPlaceMetadataHelper(
	ctx context.Context,
	entities []string,
	store *store.Store,
) (map[string]*pb.PlaceMetadata, error)

GetPlaceMetadataHelper is a wrapper to get place metadata.

func GetPlaceStatDateWithinPlace

GetPlaceStatDateWithinPlace implements API for Mixer.GetPlaceStatDateWithinPlace.

func GetRelatedLocations

func GetRelatedLocations(
	ctx context.Context,
	in *pb.GetRelatedLocationsRequest,
	store *store.Store,
) (*pb.GetRelatedLocationsResponse, error)

GetRelatedLocations implements API for Mixer.GetRelatedLocations.

Types

This section is empty.

Jump to

Keyboard shortcuts

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