place

package
v1.32.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: Apache-2.0 Imports: 15 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 GetChildPlaces

func GetChildPlaces(
	ctx context.Context, s *store.Store, parentPlace string, childType string) (
	[]string, error,
)

GetChildPlaces fetches child places given parent place and child place type.

func GetLocationsRankings

GetLocationsRankings implements API for Mixer.GetLocationsRankings.

func GetPlaceMetadata

func GetPlaceMetadata(ctx context.Context, in *pb.GetPlaceMetadataRequest, store *store.Store) (
	*pb.GetPlaceMetadataResponse, error)

GetPlaceMetadata implements API for Mixer.GetPlaceMetadata.

func GetPlaceStatDateWithinPlace

GetPlaceStatDateWithinPlace implements API for Mixer.GetPlaceStatDateWithinPlace.

func GetPlacesIn

func GetPlacesIn(ctx context.Context, in *pb.GetPlacesInRequest, store *store.Store) (
	*pb.GetPlacesInResponse, error)

GetPlacesIn implements API for Mixer.GetPlacesIn.

func GetRelatedLocations

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