Skip to content

About

Map that scores places to live using OSM amenities, transit, road/noise proxies, buildings, and land-use exclusions.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Housing Suitability Map

Compare places to live on an interactive map, with scores you can inspect rather than a flat list of addresses.

Open the map · How it works · Run locally · Русский

The map combines nearby amenities, transit, roads, buildings, and land use into suitability, risk, and opportunity layers. Search for a city or select an area, adjust the scoring profile, and inspect individual locations and their source context.

Explore an area

  1. Open the live map and search for a city, region, or supported ZIP code.
  2. Choose an area and grid resolution. Smaller areas are a useful starting point while data loads.
  3. Switch between suitability, risk, and opportunity layers and adjust the scoring profile.
  4. Select a point to inspect its score, confidence, and source context. Pin locations to compare them.

The app supports US and Russian cities as well as custom regions. Data coverage varies by place and provider.

How it works

The React and Leaflet interface combines several geographic inputs:

Input Source Role
Places and boundaries Nominatim / OpenStreetMap City and ZIP lookup, search boundaries
Amenities and transit OpenStreetMap via Overpass Nearby services and transport access
Roads, buildings, water, and land use OpenStreetMap via Overpass Road-based proxies, building context, and excluded areas
Regional datasets Boston crime and MassDOT AADT where available Additional context within the relevant jurisdiction

The scoring excludes mapped water, parks, airports, bridges, major roads, and clearly non-residential land. Road classes provide traffic and noise proxies when more specific data is unavailable. The interface loads data progressively and uses browser caching and fallback datasets.

Reading the scores

Scores are model outputs, not measurements of a home's condition or guarantees about an area. In particular, road-based noise estimates are proxies rather than sound readings. Inspect confidence and data sources before comparing locations; Massachusetts-specific inputs do not apply to every region.

Live requests depend on Nominatim and Overpass availability. Cached or fallback data can differ in freshness and coverage from a successful live query.

Run locally

Use a Node.js version compatible with the project's Vite 8 dependency and npm:

git clone https://github.com/iddictive/housing-suitability-map.git
cd housing-suitability-map
npm ci
npm run dev

Build and preview:

npm run build
npm run preview

Run lint checks with npm run lint. To build with the GitHub Pages repository prefix:

GITHUB_PAGES=true npm run build

The development server includes proxies for Boston and MassDOT APIs. Static hosting does not provide those development-server routes.

Project structure

Built with React 19, TypeScript, Vite, Leaflet, React Leaflet, and Turf.

Русский

Интерактивная карта для сравнения мест для жизни. Вместо списка адресов она показывает пригодность, риски и потенциально интересные участки с учётом инфраструктуры, транспорта, дорог, зданий и использования земли.

Открыть карту

Как пользоваться

  1. Найдите город, регион или поддерживаемый ZIP-код либо выделите область.
  2. Выберите размер сетки и профиль оценки.
  3. Переключайте слои и нажимайте на точки, чтобы увидеть оценку, достоверность и источники.
  4. Закрепляйте места для сравнения.

Данные и ограничения

Основные данные поступают из OpenStreetMap через Nominatim и Overpass. Вода, парки, аэропорты, крупные дороги и явно нежилые территории исключаются из оценки. Данные Boston crime и MassDOT применимы только к соответствующим регионам; в остальных местах используются доступные общие источники.

Оценка — результат модели. Например, шум оценивается по дорожным признакам, а не по замерам звука. Учитывайте полноту, свежесть и достоверность источников при сравнении мест. Если внешний сервис недоступен, приложение может использовать кэш или резервные наборы данных.

Локальный запуск

После клонирования репозитория выполните npm ci и npm run dev. Для сборки используйте npm run build, для её просмотра — npm run preview. Прокси региональных API из сервера разработки не входят в статическую сборку.

About

Map that scores places to live using OSM amenities, transit, road/noise proxies, buildings, and land-use exclusions.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages