| Issue 354: | orkut does not return CURRENT_LOCATION information in ADDRESSES field | |
| 24 people starred this issue and may be notified of changes. | Back to list |
ORKUT BUGS ONLY - Description:
==============================
The API is throwing the CurrentLocation Details.But fromt he past 10-15
days the location details are not available when read in the format given
in the API documentation.
What steps will reproduce the problem?
======================================
1. append address parameter to the API call
2. Read the Address details this way
var
owner_location=data.get("owner").getData().getField(opensocial.Person.Field.ADDRESSES)
3. var city=owner_location[0].fields_.locality
What is the expected output?
============================
The city of the owner as given in the profile
What is the actual output?
==========================
It is throwing "undefined".
Which browsers have you experienced this on?
============================================
IE,Firefox
Additional information
======================
It worked normally for the past few weeks.But from the last 15-20 days is
it throwing "undefined",while the api has the currentlocation details ,when
checked in the firebug.
|
|
,
Sep 19, 2008
Same problem any updates? very urgent |
|
,
Sep 19, 2008
can any one give me a sample code for how to get address of my friends ? i tried all possibilites of ADDRESS.GetField() but it is not throwing any data .. please very urgent ? Thanks in advance Sekhar |
|
,
Oct 01, 2008
The following code shows how to access the current location of the user:
function response(data) {
var owner = data.get("req").getData();
var location =
owner.getField(opensocial.Person.Field.CURRENT_LOCATION);
if (location) {
var locality =
location.getField(opensocial.Address.Field.LOCALITY) ||
"No locality";
var country =
location.getField(opensocial.Address.Field.COUNTRY) ||
"No country";
alert([locality, country].join(", "));
}
};
function request() {
var req = opensocial.newDataRequest();
var params = {};
params[opensocial.DataRequest.PeopleRequestFields.PROFILE_DETAILS] = [
opensocial.Person.Field.CURRENT_LOCATION
];
req.add(req.newFetchPersonRequest(
opensocial.IdSpec.PersonId.OWNER, params), "req");
req.send(response);
};
request();
However, orkut still has a bug where this information should be returned in the
"Adresses" field as well.
Summary: orkut does not return CURRENT_LOCATION information in ADDRESSES field
|
|
,
Oct 01, 2008
(No comment was entered for this change.)
Status: 1406875
|
|
|
|