24 lines
490 B
Go
24 lines
490 B
Go
package sidewalk
|
|
|
|
import "time"
|
|
|
|
type Condition int
|
|
|
|
const (
|
|
Unknown Condition = iota
|
|
Clear
|
|
PartiallyCovered
|
|
Covered
|
|
)
|
|
|
|
type Location []float64
|
|
|
|
type Sidewalk struct {
|
|
OSMID int // The sidewalk's identifier in OSM
|
|
Geometry []Location // List of lat/lon pairs
|
|
Tags map[string]string // OSM tags on the sidewalk
|
|
Description string // A human-readable description of the chunk of sidewalk
|
|
Condition Condition
|
|
LastUpdated time.Time
|
|
}
|