models

package
v0.0.0-...-200f910 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorResponse

type ErrorResponse struct {
	Error string `json:"error"`
}

type Geometry

type Geometry struct {
	Type        string      `bson:"type"`
	Coordinates [][]float64 `bson:"coordinates"`
}

type NotFoundResponse

type NotFoundResponse struct {
	Message string `json:"message"`
}

type Properties

type Properties struct {
	OsmID   int    `bson:"osm_id"`
	Name    string `bson:"name"`
	Highway string `bson:"highway,omitempty"`
}

type Road

type Road struct {
	ID         primitive.ObjectID `bson:"_id,omitempty"`
	Type       string             `bson:"type"`
	Geometry   Geometry           `bson:"geometry"`
	Properties Properties         `bson:"properties"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL