Dimitar Bonev
Dimitar Bonev

Reputation: 21

When does the Google People API return user's country?

I use the Google People API to find the google user's country. It returns address with populated just the formattedValue and formattedType attributes. The docs state that all fields are optional. In which cases the country and country_code get populated?

Upvotes: 2

Views: 397

Answers (1)

Linda Lawton - DaImTo
Linda Lawton - DaImTo

Reputation: 117254

The People API lets you list and manage the authenticated user's Contacts and retrieve profile information for authenticated users and their contacts.

Users edit their own contacts. So as soon as a user adds the country for their contact the data will be populated.

Upvotes: 1

Related Questions