Documentation
¶
Index ¶
- 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)
- func (g *Geocoding) SnapToRoad(ctx context.Context, dto *maps.SnapToRoadRequest) (*maps.SnapToRoadResponse, error)
- type GoogleMapsProvider
- func (g *GoogleMapsProvider) Geocode(ctx context.Context, address string, language string) (*Address, interface{}, error)
- func (g *GoogleMapsProvider) GetName() string
- func (g *GoogleMapsProvider) ReverseGeocode(ctx context.Context, latLng *LatLng, language string) (*Address, interface{}, error)
- func (g *GoogleMapsProvider) SnapToRoad(ctx context.Context, dto *maps.SnapToRoadRequest) (*maps.SnapToRoadResponse, error)
- type IGeocoding
- type LatLng
- type Provider
Constants ¶
This section is empty.
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
func (*Geocoding) ReverseGeocode ¶
func (*Geocoding) SnapToRoad ¶ added in v1.3.184
func (g *Geocoding) SnapToRoad(ctx context.Context, dto *maps.SnapToRoadRequest) (*maps.SnapToRoadResponse, error)
type GoogleMapsProvider ¶
type GoogleMapsProvider struct {
// contains filtered or unexported fields
}
func (*GoogleMapsProvider) GetName ¶
func (g *GoogleMapsProvider) GetName() string
func (*GoogleMapsProvider) ReverseGeocode ¶
func (*GoogleMapsProvider) SnapToRoad ¶ added in v1.3.184
func (g *GoogleMapsProvider) SnapToRoad(ctx context.Context, dto *maps.SnapToRoadRequest) (*maps.SnapToRoadResponse, error)
type IGeocoding ¶
type IGeocoding interface {
SnapToRoad(ctx context.Context, dto *maps.SnapToRoadRequest) (*maps.SnapToRoadResponse, error)
Geocode(ctx context.Context, ormService *beeorm.Engine, address string, language string) (*Address, error)
ReverseGeocode(ctx context.Context, ormService *beeorm.Engine, latLng *LatLng, language string) (*Address, error)
CutCoordinates(float float64, precision int) (float64, error)
}
func NewGeocoding ¶
type Provider ¶
type Provider interface {
SnapToRoad(ctx context.Context, dto *maps.SnapToRoadRequest) (*maps.SnapToRoadResponse, error)
Geocode(ctx context.Context, address string, language string) (*Address, interface{}, error)
ReverseGeocode(ctx context.Context, latLng *LatLng, language string) (*Address, interface{}, error)
GetName() string
}
func NewGoogleMapsProvider ¶
Click to show internal directories.
Click to hide internal directories.