First complete backend

This commit is contained in:
Chandler Swift 2025-02-11 00:14:58 -06:00
parent 754a0c425c
commit ee147fea3c
Signed by: chandlerswift
GPG key ID: A851D929D52FB93F
18 changed files with 949 additions and 178 deletions

23
sidewalk/sidewalk.go Normal file
View 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
}