scraper

package
v0.0.0-...-a03ee57 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDescription

func GetDescription(html *string) (string, error)

func StringToLines

func StringToLines(s *string) ([]string, error)

Types

type Coordinates

type Coordinates struct {
	Lat float64
	Lon float64
}

func GetGeometry

func GetGeometry(html *string) ([]Coordinates, error)

type Data

type Data struct {
	MapData []MapData `json:"mapData"`
}

type MapData

type MapData struct {
	SpaId        uint32  `json:"spaId"`
	Nom          string  `json:"nom"`
	PrettyURL    string  `json:"prettyURL"`
	Geom         string  `json:"geom"`
	ImgOnTooltip string  `json:"imgOnTooltip"`
	Blat         float32 `json:"blat"`
	Blng         float32 `json:"blng"`
	Elat         float32 `json:"elat"`
	Elng         float32 `json:"elng"`
	Loop         bool    `json:"loop"`
	Waypoint     bool    `json:"waypoint"`
}

Jump to

Keyboard shortcuts

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