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.
- Open the live map and search for a city, region, or supported ZIP code.
- Choose an area and grid resolution. Smaller areas are a useful starting point while data loads.
- Switch between suitability, risk, and opportunity layers and adjust the scoring profile.
- 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.
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.
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.
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 devBuild and preview:
npm run build
npm run previewRun lint checks with npm run lint. To build with the GitHub Pages repository prefix:
GITHUB_PAGES=true npm run buildThe development server includes proxies for Boston and MassDOT APIs. Static hosting does not provide those development-server routes.
src/App.tsx: map interface and application flow.src/domain/: location, geometry, configuration, types, and API caching.public/data/: bundled fallback data.vite.config.ts: build base path and development API proxies.
Built with React 19, TypeScript, Vite, Leaflet, React Leaflet, and Turf.
Интерактивная карта для сравнения мест для жизни. Вместо списка адресов она показывает пригодность, риски и потенциально интересные участки с учётом инфраструктуры, транспорта, дорог, зданий и использования земли.
- Найдите город, регион или поддерживаемый ZIP-код либо выделите область.
- Выберите размер сетки и профиль оценки.
- Переключайте слои и нажимайте на точки, чтобы увидеть оценку, достоверность и источники.
- Закрепляйте места для сравнения.
Основные данные поступают из OpenStreetMap через Nominatim и Overpass. Вода, парки, аэропорты, крупные дороги и явно нежилые территории исключаются из оценки. Данные Boston crime и MassDOT применимы только к соответствующим регионам; в остальных местах используются доступные общие источники.
Оценка — результат модели. Например, шум оценивается по дорожным признакам, а не по замерам звука. Учитывайте полноту, свежесть и достоверность источников при сравнении мест. Если внешний сервис недоступен, приложение может использовать кэш или резервные наборы данных.
После клонирования репозитория выполните npm ci и npm run dev. Для сборки используйте npm run build, для её просмотра — npm run preview. Прокси региональных API из сервера разработки не входят в статическую сборку.