Documentation ¶
Overview ¶
Package maps provides a location lookup abstraction including a normalized list of countries.
Copyright (c) 2018 - 2024 PhotoPrism UG. All rights reserved.
This program is free software: you can redistribute it and/or modify it under Version 3 of the GNU Affero General Public License (the "AGPL"): <https://docs.photoprism.app/license/agpl> This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. The AGPL is supplemented by our Trademark and Brand Guidelines, which describe how our Brand Assets may be used: <https://www.photoprism.app/trademark>
Feel free to send an email to hello@photoprism.app if you have questions, want to support our work, or just want to say hello.
Additional information can be found in our Developer Guide: <https://docs.photoprism.app/developer-guide/>
Index ¶
- Variables
- func CountryName(code string) string
- type Location
- func (l Location) Category() string
- func (l Location) City() string
- func (l Location) CountryCode() string
- func (l Location) CountryName() string
- func (l Location) District() string
- func (l Location) KeywordString() string
- func (l Location) Keywords() []string
- func (l Location) Label() string
- func (l Location) Name() string
- func (l Location) PlaceID() string
- func (l Location) Postcode() string
- func (l Location) PrefixedToken() string
- func (l *Location) QueryApi(api string) error
- func (l *Location) QueryPlaces() error
- func (l Location) S2Token() string
- func (l Location) Source() string
- func (l Location) State() string
- func (l Location) Street() string
- func (l *Location) Unknown() bool
- type LocationSource
Constants ¶
This section is empty.
Variables ¶
View Source
var CountryNames = map[string]string{}/* 250 elements not displayed */
Functions ¶
func CountryName ¶
CountryName tries to find a matching country name for a code.
Types ¶
type Location ¶
type Location struct { ID string LocName string LocStreet string LocPostcode string LocCategory string LocLabel string LocDistrict string LocCity string LocState string LocCountry string LocKeywords []string LocSource string // contains filtered or unexported fields }
Location represents a geolocation.
func (Location) CountryCode ¶
func (Location) CountryName ¶
func (Location) KeywordString ¶
func (Location) PrefixedToken ¶
func (*Location) QueryPlaces ¶
Click to show internal directories.
Click to hide internal directories.