blob: 63ac3fc8afb55d7a549ac21be5d44499a79ed43c [file] [log] [blame]
{
"$schema": "http://json-schema.org/draft-03/schema",
"$license": [
"http://www.apache.org/licenses/LICENSE-2.0"
],
"id": "#",
"type": "object",
"javaType" : "org.apache.streams.twitter.pojo.Place",
"javaInterfaces": ["java.io.Serializable"],
"description": "Places are specific, named locations with corresponding geo coordinates. They can be attached to Tweets by specifying a place_id when tweeting. Tweets associated with places are not necessarily issued from that location but could also potentially be about that location. Places can be searched for. Tweets can also be found by place_id. Places also have an attributes field that further describes a Place. These attributes are more convention rather than standard practice, and reflect information captured in the Twitter places database.",
"properties": {
"id": {
"type": "string"
},
"attributes": {
"type": "object",
"javaType" : "org.apache.streams.twitter.pojo.PlaceAttributes",
"properties": {
"street_address": {
"type": "string"
},
"locality": {
"type": "string",
"description": "the city the place is in"
},
"region": {
"type": "string",
"description": "the administrative region the place is in"
},
"iso3": {
"type": "string",
"description": "the country code"
},
"postal_code": {
"type": "string",
"description": "the country code"
},
"phone": {
"type": "string",
"description": "in the preferred local format for the place, include long distance code"
},
"twitter": {
"type": "string",
"description": "twitter screen-name, without @"
},
"url": {
"type": "string",
"description": "official/canonical URL for place"
}
}
},
"bounding_box": {
"type": "object",
"javaType" : "org.apache.streams.twitter.pojo.BoundingBox",
"javaInterfaces": ["java.io.Serializable"],
"properties": {
"type": {
"type": "string"
},
"coordinates": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "number"
}
}
}
}
}
},
"country": {
"description": "Name of the country containing this place.",
"type": "string"
},
"country_code": {
"description": "Shortened country code representing the country containing this place.",
"type": "string"
},
"full_name": {
"description": "Full human-readable representation of the place’s name.",
"type": "string"
},
"name": {
"description": "Short human-readable representation of the place’s name.",
"type": "string"
},
"place_type": {
"description": "The type of location represented by this place.",
"type": "string"
},
"url": {
"description": "URL representing the location of additional place metadata for this place.",
"type": "string"
}
}
}