roundrop/facebook4j — pull request #67 by kwent (2014-07-01 01:58:41+00:00)
Title: Add Categories to Place Object

```
GET https://graph.facebook.com/search?type=place&q=San%20Francisco%2C%20California¢er=37.7793%2C-122.419&distance=1000&access_token=xxxxx
```

### This request is rendering this result below.

```json
{
"data": [
{
"category_list": [
{
"name": "City",
"id": "224455390913969"
}
],
"name": "San Francisco, California",
"location": {
"zip": "",
"street": "",
"latitude": 37.775,
"longitude": -122.418
},
"id": "114952118516947",
"category": "City"
},
{
"category_list": [
{
"name": "College & University",
"id": "108051929285833"
}
],
"name": "The Art Institute of California \u2013 San Francisco",
"location": {
"zip": "",
"country": "United States",
"city": "San Francisco",
"street": "",
"latitude": 37.7793,
"state": "CA",
"longitude": -122.4146
},
"id": "107974819230515",
"category": "University"
},
{
"category_list": [
{
"name": "Government Organization",
"id": "161422927240513"
},
{
"name": "Courthouse",
"id": "110121459069433"
}
],
"name": "San Francisco Superior Court of California",
"location": {
"zip": "",
"country": "United States",
"city": "San Francisco",
"street": "",
"latitude": 37.7801098434,
"state": "CA",
"longitude": -122.418666454
},
"id": "333073523410131",
"category": "Local business"
},
{
"category_list": [
{
"name": "Hotel",
"id": "164243073639257"
}
],
"name": "Hotel California San Francisco",
"location": {
"zip": "94102",
"country": "United States",
"city": "San Francisco",
"street": "580 Geary St",
"latitude": 37.7868356531,
"state": "CA",
"longitude": -122.412971334
},
"id": "511308512251606",
"category": "Hotel"
},
{
"category_list": [
{
"name": "Consulate & Embassy",
"id": "214297118585256"
}
],
"name": "Consulado De Venezuela en San Francisco. California",
"location": {
"zip": "94103",
"country": "United States",
"city": "San Francisco",
"street": "1161 Mission Street, Suite 300 ",
"latitude": 37.7780810221,
"state": "CA",
"longitude": -122.412261893
},
"id": "181792071874171",
"category": "Local business"
},
{
"category_list": [
{
"name": "School",
"id": "365182493518892"
}
],
"name": "The Art Institute of California-San Francisco: Housing & Residential Life",
"location": {
"zip": "94102",
"country": "United States",
"city": "San Francisco",
"street": "1170 Market St",
"latitude": 37.779497,
"state": "CA",
"longitude": -122.414301
},
"id": "582245705227096",
"category": "School"
},
{
"category_list": [
{
"name": "Government Organization",
"id": "161422927240513"
},
{
"name": "Religious Center",
"id": "139460309451166"
}
],
"name": "U.S. District Court, San Francisco, California",
"location": {
"zip": "",
"country": "United States",
"city": "San Francisco",
"street": "",
"latitude": 37.7826300482,
"state": "CA",
"longitude": -122.418492342
},
"id": "108417205906763",
"category": "Local business"
},
{
"category_list": [
{
"name": "Government Organization",
"id": "161422927240513"
}
],
"name": "State of California -EDD San Francisco Workforce Services",
"location": {
"zip": "",
"country": "United States",
"city": "San Francisco",
"street": "801 Turk St. ",
"latitude": 37.781452,
"state": "CA",
"longitude": -122.422576
},
"id": "805983529427820",
"category": "Local business"
},
{
"category_list": [
{
"name": "Public Places & Attractions",
"id": "148932728496725"
}
],
"name": "Twin Peaks (San Francisco, California)",
"location": {
"zip": "94114",
"country": "United States",
"city": "San Francisco",
"street": "501 Twin Peaks Blvd",
"latitude": 37.78719876344,
"state": "CA",
"longitude": -122.41370354192
},
"id": "107107622687423",
"category": "Local business"
},
{
"category_list": [
{
"name": "Region",
"id": "115725465228008"
},
{
"name": "River",
"id": "407338945943828"
},
{
"name": "Ocean",
"id": "215492291888288"
}
],
"name": "San Francisco Bay, California",
"location": {
"zip": "94102",
"country": "United States",
"city": "San Francisco",
"street": "",
"latitude": 37.78291776,
"located_in": 1.0813158587386e+14,
"state": "CA",
"longitude": -122.422128368
},
"id": "248711105146015",
"category": "Local business"
},
{
"category_list": [
{
"name": "Outdoors",
"id": "272705352802676"
}
],
"name": "Civic Center in San Francisco - California 94109",
"location": {
"zip": "",
"country": "United States",
"city": "San Francisco",
"street": "",
"latitude": 37.7846010542,
"state": "CA",
"longitude": -122.418803321
},
"id": "1408058066136488",
"category": "Local business"
},
{
"category_list": [
{
"name": "College & University",
"id": "108051929285833"
},
{
"name": "Medical & Health",
"id": "145118935550090"
}
],
"name": "505 parnassus University Of California San Francisco",
"location": {
"zip": "",
"country": "United States",
"city": "San Francisco",
"street": "",
"latitude": 37.782863948,
"state": "CA",
"longitude": -122.41443084
},
"id": "194477440586872",
"category": "Local business"
},
{
"category_list": [
{
"name": "Local Business",
"id": "2500"
}
],
"name": "California Bakery San Francisco",
"location": {
"zip": "94102",
"country": "United States",
"city": "San Francisco",
"street": "",
"latitude": 37.7808162477,
"state": "CA",
"longitude": -122.412833478
},
"id": "412764012078382",
"category": "Local business"
},
{
"category_list": [
{
"name": "College & University",
"id": "108051929285833"
}
],
"name": "University Of California San Francisco Civic Symphony Center",
"location": {
"zip": "94102",
"country": "United States",
"city": "San Francisco",
"street": "",
"latitude": 37.77341288,
"state": "CA",
"longitude": -122.42455017
},
"id": "233553693327527",
"category": "Local business"
}
],
"paging": {
"next": "https:\/\/graph.facebook.com\/v1.0\/search?type=place¢er=37.7793,-122.419&distance=1000&access_token=access_token&limit=5000&offset=5000
}
}
```

### This pull request is adding categories in Place Object.

```
PlaceJSONImpl [id=114952118516947, name=San Francisco, California, location=LocationJSONImpl{street='', city='null', state='null', country='null', zip='', latitude=37.775, longitude=-122.418, text='null'}, categories=[CategorizedEntityJSONImpl [id=224455390913969, name=City, category=null, createdTime=null]]]
```