Versions in this module Expand all Collapse all v0 v0.1.1 Mar 5, 2018 Changes in this version type NearbyPointsSearchRequest + Distinct bool v0.1.0 Mar 4, 2018 Changes in this version + type ImposmRepository interface + FindNearbyStreets func(location Location, radius uint) ([]NearbyPoint, error) + FindNearbyTransportPoints func(location Location, radius uint, transportTypes []string) ([]NearbyPoint, error) + type ImposmService interface + FindNearbyStreets func(r *NearbyPointsSearchRequest) ([]NearbyPoint, error) + FindNearbyTransportPoints func(r *NearbyPointsSearchRequest) ([]NearbyPoint, error) + type ImposmServiceImpl struct + Repository ImposmRepository + func NewImposmService(repository ImposmRepository) *ImposmServiceImpl + func (c *ImposmServiceImpl) FindNearbyStreets(r *NearbyPointsSearchRequest) ([]NearbyPoint, error) + func (c *ImposmServiceImpl) FindNearbyTransportPoints(r *NearbyPointsSearchRequest) ([]NearbyPoint, error) + type Location struct + Lat float32 + Lon float32 + type NearbyPoint struct + Distance float32 + Name string + OSMId int + PointType string + type NearbyPointsSearchRequest struct + Location Location + Radius int + TransportTypes []string + type PostGISImposmRepository struct + func NewImposmRepository(db *sql.DB) *PostGISImposmRepository + func (r *PostGISImposmRepository) FindNearbyStreets(location Location, radius uint) ([]NearbyPoint, error) + func (r *PostGISImposmRepository) FindNearbyTransportPoints(location Location, radius uint, transportTypes []string) ([]NearbyPoint, error)