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]
Types ¶
type HTTPRequest ¶
Click to show internal directories.
Click to hide internal directories.