denmark-real-estate-valuation
v2.1.0
Published
A stream of reale state valuations given a zipcode and streetname
Downloads
22
Readme
#denmark-real-estate-valuation
A stream of real estate valuations given a zipcode and streetname
Installation
npm install denmark-real-estate-valuation
Documentation
RealEstateValuation = require('denmark-real-estate-valuation')
This is a class constructor with the signature RealEstateValuation(query)
,
it returns a readable stream.
query is an object that could specify the area (either zipCode
or municipalityCode
)
and the street name (streetName
). If the municipalityCode
is used
a street code (streetCode
) can be used instead of street name.
const valuations = RealEstateValuation({
zipCode: 2800,
streetName: 'Lyngby Hovedgade'
});
// alternatively: { municipalityCode: 173, streetName: 'Lyngby Hovedgade' }
// alternatively: { municipalityCode: 173, streetCode: 535 }
valuations.on('data', function (property) {
property = {
id: 51002,
houseNumber: '1A',
floor: '2',
type: 'Ejerlejl. iøvrigt',
landValue: 10210000, // danish kroner (DKK)
houseValue: 30500000 // danish kroner (DKK)
};
// The real estate value is `property.landValue + property.houseValue`.
});
Source
The source is: http://www.vurdering.skat.dk/borger/ejendomsvurdering/Soeg2.do The webpage does not provide an API, so this module scrapes the data from it.