mapdata

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package mapdata decodes bounded inner map payloads without network or rendering.

Index

Constants

This section is empty.

Variables

View Source
var ErrMalformed = errors.New("malformed map data")

ErrMalformed identifies unsupported, truncated, or inconsistent map data.

Functions

func Decode

func Decode(format mapmodel.MapFormat, payload []byte) (*mapmodel.MapSnapshot, error)

Decode parses decrypted, inflated V1/Q7 bytes or an inner Q10 packet.

func MapToPixel

func MapToPixel(grid mapmodel.MapGrid, point mapmodel.MapPoint) (mapmodel.MapPoint, error)

MapToPixel converts source-frame world coordinates to displayed top-down pixels.

func PixelRectangleToMap

func PixelRectangleToMap(grid mapmodel.MapGrid, rectangle mapmodel.MapRectangle) (mapmodel.MapRectangle, error)

PixelRectangleToMap validates a displayed raster rectangle and converts its corners.

func PixelToMap

func PixelToMap(grid mapmodel.MapGrid, point mapmodel.MapPoint) (mapmodel.MapPoint, error)

PixelToMap reverses MapToPixel without rounding or changing firmware frames.

Types

This section is empty.

Jump to

Keyboard shortcuts

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