Skip to content

Map out your apartment search on Google My Maps.

License

Notifications You must be signed in to change notification settings

sameer/apartment-map

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

apartment-map

Import your apartment search to Google My Maps.

Why?

Apartment listing sites provide basic search filters to help narrow down listings. However, there is no way to consider custom factors outside what a site allows. Maybe you want to look at bus routes, crime, or even noise levels.

Demo

I pulled apartments in the Los Angeles area and displayed them alongside Metro stations:

Screenshot of Google My Maps

Each location has the price range and a link back to the original listing: Screenshot of Google My Maps showing listing details

If you want to add accurate commute estimates, use directions.py to modify your apartments.tsv file: Screenshot of Google My Maps showing listing details with distance and bus fare

Supported Sites

Instructions

  1. Do your search on a supported website.
  2. Right click on the page and hit "Inspect Element". In Chrome, this is just "Inspect".
    • Beware that this changes the size of the map and the results may change.
    • For best results, make sure you are on the first page of results.
  3. Go to the tab that says "Console".
  4. Copy and paste apartments.js into the console. When it's done, the page will offer to save a TSV file. Download that.
    • You may receive a warning about only pasting code you trust. Bypass that. If you have any concerns, feel free to read the code 🙂
  5. Upload it to Google My Maps
    1. If you don't have a map yet, create one
    2. Click Add layer
    3. On the new layer, click Import
    4. Select your TSV file
    5. Pick address for the positioning column.
    6. Pick name for the marker name column.

Bonus

If you want accurate distance estimates using Google Maps:

  1. Get credentials for the Google Distance Matrix API
  2. Open directions.py and customize relevant variables
  3. Run directions.py with apartments.tsv in the same folder
  4. Use apartments-with-distance.tsv in lieu of apartments.tsv when following steps to add to Google My Maps.