2015-03-13 51 views
0

我正在使用linkedin api檢索用戶的位置(城市,州,國家)信息,但它沒有返回正確的城市信息。Linkedin「/ people」API返回錯誤的位置信息

它似乎是根據提供的郵政編碼自行檢索城市名稱。

LinkedIn API使用: https://api.linkedin.com/v1/people/~:(certifications:(name,authority,number,start-date,end-date),email-address,first-name,last-name,headline,location:(name,country:(code)),positions,skills,educations,main-address,phone-numbers)?format=json&oauth2_access_token=

回答

1

你的API請求要求LinkedIn的國家代碼,正如你在你的問題建議的成員的位置,而不是市,省,國家的「名字」。

LinkedIn有它的不對齊100%,城市的邊界,並經常表達一般的全球商業領域(如「舊金山灣區」)

有關更多信息,位置值的自己的列表,請參閱:https://developer.linkedin.com/docs/fields/location