geoparser

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2026 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type Cell

type Cell struct {
	X   float64 // Cell center X
	Y   float64 // Cell center Y
	H   float64 // Half cell size
	D   float64 // Distance from cell center to polygon
	Max float64 // max distance to polygon within a cell
}

func NewCell

func NewCell(x float64, y float64, h float64, p orb.Ring) *Cell

type Config added in v1.3.0

type Config struct {
	Threads               int
	Version               uint32
	PreferredLocalization string
	HighwayPointsDistance float64
}

func ConfigDefault added in v1.3.0

func ConfigDefault() Config

type GeoGen

type GeoGen struct {
	// contains filtered or unexported fields
}

func NewGeoGen

func NewGeoGen(db osmpbfdb.OsmDB, config Config) (*GeoGen, error)

func (*GeoGen) ParseOSMData added in v1.2.3

func (f *GeoGen) ParseOSMData(ctx context.Context) error

func (*GeoGen) ResetCache added in v1.2.0

func (f *GeoGen) ResetCache() error

func (*GeoGen) SavePointsToFile

func (f *GeoGen) SavePointsToFile(file string) error

Jump to

Keyboard shortcuts

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