Documentation ¶
Index ¶
- Constants
- type Address
- type Geocoding
- func (g *Geocoding) CutCoordinates(float float64, precision int) (float64, error)
- func (g *Geocoding) Geocode(ctx context.Context, ormService *beeorm.Engine, address string, ...) (*Address, error)
- func (g *Geocoding) ReverseGeocode(ctx context.Context, ormService *beeorm.Engine, latLng *LatLng, ...) (*Address, error)
- type GoogleMapsProvider
- func (g *GoogleMapsProvider) Geocode(ctx context.Context, address string, language Language) (*Address, interface{}, error)
- func (g *GoogleMapsProvider) GetName() string
- func (g *GoogleMapsProvider) ReverseGeocode(ctx context.Context, latLng *LatLng, language Language) (*Address, interface{}, error)
- type IGeocoding
- type Language
- type LatLng
- type Provider
Constants ¶
View Source
const ( LanguageEnglish = Language("en") LanguageBulgarian = Language("bg") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Geocoding ¶
type Geocoding struct {
// contains filtered or unexported fields
}
func (*Geocoding) CutCoordinates ¶ added in v1.3.28
type GoogleMapsProvider ¶
type GoogleMapsProvider struct {
// contains filtered or unexported fields
}
func (*GoogleMapsProvider) GetName ¶
func (g *GoogleMapsProvider) GetName() string
func (*GoogleMapsProvider) ReverseGeocode ¶
type IGeocoding ¶
type IGeocoding interface { Geocode(ctx context.Context, ormService *beeorm.Engine, address string, language Language) (*Address, error) ReverseGeocode(ctx context.Context, ormService *beeorm.Engine, latLng *LatLng, language Language) (*Address, error) CutCoordinates(float float64, precision int) (float64, error) }
func NewGeocoding ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.