Skip to content

Latest commit

 

History

History
50 lines (37 loc) · 1.48 KB

README.md

File metadata and controls

50 lines (37 loc) · 1.48 KB

#denmark-real-estate-valuation Build Status

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.