https://api.twitter.com/1.1/geo/search.json?granularity=country&query=rico
Returns
{
"result": {
"places": [
{
"id": "48c0e174396d2cbf",
"url": "https://api.twitter.com/1.1/geo/id/48c0e174396d2cbf.json",
"place_type": "country",
"name": "Puerto Rico",
"full_name": "Puerto Rico",
"country_code": "",
"country": "Puerto Rico",
"contained_within": [],
"centroid": [
-66.3854856946198,
18.199755000000003
]
}
]
}
}
In Puerto Rico, the country_code is empty.
Where others have the country_code for tweet targeting:
{
"result": {
"places": [
{
"id": "6416b8512febefc9",
"url": "https://api.twitter.com/1.1/geo/id/6416b8512febefc9.json",
"place_type": "country",
"name": "United Kingdom",
"full_name": "United Kingdom",
"country_code": "GB",
"country": "United Kingdom",
"contained_within": [],
"centroid": [
-1.9280975903801871,
54.3306827
]
}
]
}
}
Is empty country_code expected?
Thanks.