4 ms·
Want to create one for your city? Here is the source: https://github.com/jeffkaufman/apartment_prices https://github.com/jeffkaufman/apartment_prices
by crisnoble 14y ago
Want to create one for your city? Here is the source: https://github.com/jeffkaufman/apartment_prices https://github.com/jeffkaufman/apartment_prices
- deleted 14y ago[deleted]
- aGHz 14y agoFrom https://github.com/jeffkaufman/apartment_prices/blob/master/query_padmapper.py#L103-L105 https://github.com/jeffkaufman/apartment_prices/blob/master/... The guy who wrote Padmapper says this tool puts a pretty heavy load on his server and he would rather it was run no more than once a month. If you're just looking for some apartment data, I've put some in apts-2013-01-29, which is for Boston in January 2013. Please be considerate when running this. It does multiple querries to padmapper, one for each choice in number of bedrooms (0 to 9) times the number of 25$ increments in rent between 100$ and MAX_RENT. Consider tweaking those variables and maybe the 100 lower limit at https://github.com/jeffkaufman/apartment_prices/blob/master/query_padmapper.py#L85 https://github.com/jeffkaufman/apartment_prices/blob/master/...
- cbr 14y agoWhen I first wrote it I talked to padmapper, and they said that as long as I wasn't going to run it very often it made more sense to keep with the horribly inefficient method in query_padmapper.py than for him to put a bunch of time into making something fancier available. Though a dump of the whole country doesn't sound like it would be that hard and making a US-sized map would be awesome.
- ericd 14y agoYeah, it's a bit more worrying that it's public code, but I imagine that it will be fairly limited, and it seems like people find it useful, so it's probably not a big deal as long as people don't use it too frequently. If there's enough interest, perhaps I should make this heatmap an option on PM itself so that people don't have to all make their own? Would you be OK with my using the code for that?
- cbr 14y ago> perhaps I should make this heatmap an option on PM itself so that people don't have to all make their own? That would be awesome. The current code drawing code is probably too slow for this, though.
- ericd 14y agoCool cool. It'll probably take me longer if it needs to be rewritten. I guess it's not tile-based?
- sycren 14y agoIt is interesting how this works. What factors do you believe affects the price? Euclidian distance away from: shops, travel, crime? Anyone know of any papers?
- Evbn 14y agoL1, not euclidean.
- sycren 14y agoL1?
- textminer 14y agoWe walk blocks, not as the bird flies.
- sycren 14y agoManhattan distance then. It is easier to work out the Euclidian distance though between 2 coordinates.
- textminer 14y agoAbout computationally as complex, no? The Manhattan distance would just be the sum of the absolute difference in the two coordinates. The Manhattan and Euclidean distance on finite spaces both generalize to "l_p norms" (1 and 2, respectively) on an n-dimensional Euclidean space, where ||x||_p = (|x_0|^p + |x_1|^p + ... + |x_n|^p)^(1/p). You can even naturally define it in the limit where p goes to infinity! http://en.wikipedia.org/wiki/Lp_space http://en.wikipedia.org/wiki/Lp_space