Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetOverpassData ¶
func SetOverpassData(conn *Conn, bounds *domain.ActivityBounds, geographicMapElements []*domain.GeographicMapElement) error
Types ¶
type OverpassCacheEntry ¶
type OverpassCacheEntry struct { Elements []*domain.GeographicMapElement CachedTime time.Time }
func GetOverpassData ¶
func GetOverpassData(conn *Conn, bounds *domain.ActivityBounds) (*OverpassCacheEntry, error)
GetOverpassResponse retrieves from the cache the elements for a given bounds if it was cached, nil if it has not yet been cached, or an error.
Click to show internal directories.
Click to hide internal directories.