Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImposmRepository ¶
type ImposmService ¶
type ImposmService interface { FindNearbyTransportPoints(r *NearbyPointsSearchRequest) ([]NearbyPoint, error) FindNearbyStreets(r *NearbyPointsSearchRequest) ([]NearbyPoint, error) }
type ImposmServiceImpl ¶
type ImposmServiceImpl struct {
Repository ImposmRepository
}
func NewImposmService ¶
func NewImposmService(repository ImposmRepository) *ImposmServiceImpl
func (*ImposmServiceImpl) FindNearbyStreets ¶
func (c *ImposmServiceImpl) FindNearbyStreets(r *NearbyPointsSearchRequest) ([]NearbyPoint, error)
func (*ImposmServiceImpl) FindNearbyTransportPoints ¶
func (c *ImposmServiceImpl) FindNearbyTransportPoints(r *NearbyPointsSearchRequest) ([]NearbyPoint, error)
type NearbyPoint ¶
type PostGISImposmRepository ¶
type PostGISImposmRepository struct {
// contains filtered or unexported fields
}
func NewImposmRepository ¶
func NewImposmRepository(db *sql.DB) *PostGISImposmRepository
func (*PostGISImposmRepository) FindNearbyStreets ¶
func (r *PostGISImposmRepository) FindNearbyStreets(location Location, radius uint, distinct bool) ([]NearbyPoint, error)
func (*PostGISImposmRepository) FindNearbyTransportPoints ¶
func (r *PostGISImposmRepository) FindNearbyTransportPoints(location Location, radius uint, distinct bool, transportTypes []string) ([]NearbyPoint, error)
Click to show internal directories.
Click to hide internal directories.