Maintaining a healthy lifestyle is easier in some neighborhoods than others. But which ones?

To determine the healthiest places to live in New York City, StreetEasy recently analyzed data from its listings, along with information from Yelp and the city’s Open Data portal.

For each neighborhood, the company considered the number and availability of bike rooms and bike lanes; gyms, pools and other fitness facilities; medical offices and health centers; and parks, community gardens and athletic fields. (All of the information was weighted per capita, and neighborhoods with fewer than 3,000 residents were excluded.)

The company also partnered with Seamless, the takeout-food app, to find out which areas had the most restaurants that would accommodate requests for healthy food — things like specifying brown rice over white.