- Previous: LocationInfo.getCountiesInState
- Up: LocationInfo Library
- Next: LocationInfo.getStates
LocationInfo.getNeighborhoodsInCity
Description
Retrieves all Neighborhoods in a city.
Important Update from Trulia
Effective immediately, we are modifying the results of the getNeighborhoodsInCity function. Due to a change with our data provider for neighborhoods, we will no longer return the neighborhood latitutde and longitude fields in our results set. We appologize for any inconvenience this change causes.
<longitude>123.456</longitude>
<latitude>123.456</latitude>
Function Parameters
| Parameter | Description | Required | Format |
|---|---|---|---|
| apikey | Your TruliaAPI key | Yes | |
| city | The city you wish you wish to find neighborhoods in. | Yes | |
| state | The state in which the above city is located. | Yes | 2-letter postal code |
Sample Call
http://api.trulia.com/webservices.php?library=LocationInfo&function=
getNeighborhoodsInCity&city=San Francisco&state=CA&apikey=abc123
Sample Return (Truncated for clarity)
<TruliaWebServices>
<request>
<Parameter>
<index>1</index>
<name>library</name>
<value>LocationInfo</value>
</Parameter>
<Parameter>
<index>2</index>
<name>function</name>
<value>getNeighborhoodsInCity</value>
</Parameter>
<Parameter>
<index>3</index>
<name>city</name>
<value>San Francisco</value>
</Parameter>
<Parameter>
<index>4</index>
<name>state</name>
<value>CA</value>
</Parameter>
</request>
<response>
<LocationInfo>
<city>San Francisco</city>
<state>CA</state>
<neighborhood>
<id>1386</id>
<name>Alamo Square</name>
</neighborhood>
<neighborhood>
<id>1387</id>
<name>Anza Vista</name>
</zipCode>
...
</LocationInfo>
</response>
</TruliaWebServices>
- Previous: LocationInfo.getCountiesInState
- Up: LocationInfo Library
- Next: LocationInfo.getStates

Comments
alex – 3 years ago
Does not appear that all cities all functional. I suppose that is to be expected, heck of alot of neighborhoods out there.
mike111 – 9 months ago
i need to get pictures of homes and current market value of homes around 6862 woodmont st detroit mi 48228
Please sign in to post a comment.