LocationInfo.getNeighborhoodsInCity

Description

Retrieves all Neighborhoods in a city.

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>
        <longitude>123.456</longitude>
        <latitude>123.456</latitude>
      </neighborhood>
      <neighborhood>
        <id>1387</id>
        <name>Anza Vista</name>
        <longitude>123.456</longitude>
        <latitude>123.456</latitude>
      </zipCode>
      ...       
    </LocationInfo>
  </response>
</TruliaWebServices>

Comments

  1. alex1 year ago

    Does not appear that all cities all functional. I suppose that is to be expected, heck of alot of neighborhoods out there.