property

package
v0.0.0-...-02d3639 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2016 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package property parses property records downloaded from the Canton of Vaud: http://www.geoplanet.vd.ch/ and http://www.rfinfo.vd.ch/rfinfo.php?no_commune=XXX&no_immeuble=XXX

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Property

type Property struct {
	Commune string
	Id      int
	Surface float64
	Owners  []string
}

A Property holds all the data parsed out of one record. (There is other data available in the records, but it is not currently parsed.)

func Read

func Read(r io.Reader) (p *Property, err error)

Read parses one record off of the given io.Reader. The input must be UTF-8 HTML. The rinfo.vd.ch website gives output in IOS-8859-1, so it needs to be converted to UTF-8 before parsing.

Jump to

Keyboard shortcuts

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