First complete backend
This commit is contained in:
parent
754a0c425c
commit
ee147fea3c
18 changed files with 949 additions and 178 deletions
23
sidewalk/sidewalk.go
Normal file
23
sidewalk/sidewalk.go
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue