controller

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindNearestRoad

func FindNearestRoad(c *fiber.Ctx) error

FindNearestRoad godoc @Summary Find the nearest road @Description Given latitude and longitude, find the nearest road within a 5km radius @Accept json @Produce json @Param latitude query float64 true "Latitude" @Param longitude query float64 true "Longitude" @Success 200 {object} models.Road "Found the nearest road" @Failure 400 {object} models.ErrorResponse "Invalid input format" @Failure 404 {object} models.NotFoundResponse "No nearby road found" @Failure 500 {object} models.ErrorResponse "Internal Server Error" @Router /findnearestroad [get]

func Sink

func Sink(c *fiber.Ctx) error

Types

type HTTPRequest

type HTTPRequest struct {
	Header string `json:"header"`
	Body   string `json:"body"`
}

Jump to

Keyboard shortcuts

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