[GIS] Grouping latitude and longitude coordinates by city neighborhood

latitude longitudepython

I'm working on a model to predict whether craigslist apartment listings are over or under market value. I'm a complete novice with GIS.

I have the lat and long as well as what neighborhood the author says the apartment is in. But seeing how some neighborhoods are nicer or better known than others, the apartment's actual address is often in other neighborhoods.

enter image description here

The picture is an example of apartments listed under the neighborhood SOMA but many are outside the neighborhood borders.

Is there any way in Python to group lat and longs by neighborhood?

Best Answer

This tutorial from Boundless has some excellent examples of how to work through similar problems in the borough/neighborhood hierarchy in NYC. It doesn't take long to work through the tutorials and you'll feel a lot more at ease with PostGIS in no time.