Increase the search radius for cafe stops
This commit is contained in:
parent
f740686d2f
commit
9ec3b2e980
2 changed files with 25 additions and 1 deletions
|
@ -9,6 +9,9 @@ import (
|
|||
"github.com/dhconnelly/rtreego"
|
||||
)
|
||||
|
||||
// Size (in metres) of the bounding box around a stop
|
||||
const stopRectangleSize = 500
|
||||
|
||||
type RefreshmentStop struct {
|
||||
Name string
|
||||
Url string
|
||||
|
@ -18,7 +21,7 @@ type RefreshmentStop struct {
|
|||
|
||||
func (s *RefreshmentStop) Bounds() *rtreego.Rect {
|
||||
p := rtreego.Point{s.Easting, s.Northing}
|
||||
return p.ToRect(100)
|
||||
return p.ToRect(stopRectangleSize)
|
||||
}
|
||||
|
||||
func (s *RefreshmentStop) Contains(p rtreego.Point) bool {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue