The type of the entity. For most entity types, the associated metadata is a
Wikipedia URL (
wikipedia_url) and Knowledge Graph MID (
mid). The table
below lists the associated fields for entities that have different
Name Description Address
The metadata identifies the street number and locality plus whichever
additional elements appear in the text:
street_number - Street number.
locality - City or town.
street_name - Street/route name, if detected.
postal_code - Postal code, if detected.
country - Country, if detected.
broad_region - Administrative area, such as the state, if detected.
narrow_region - Smaller administrative area, such as county, if
sublocality - Used in Asian addresses to demark a district within a
city, if detected.
The metadata identifies the components of the date:
year - Four digit year, if detected.
month - Two digit month number, if detected.
day - Two digit day number, if detected.
The metadata is the number itself.
Other types of entities.
The metadata lists the phone number (formatted according to local
convention), plus whichever additional elements appear in the text:
number - The actual number, broken down into sections according to
national_prefix - Country code, if detected.
area_code - Region or area code, if detected.
extension - Phone extension (to be dialed after connection), if
The metadata identifies the
Except as otherwise noted, the content of this page is licensed under the
Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2021-09-29 UTC.
"label":"Hard to understand"
"label":"Incorrect information or sample code"
"label":"Missing the information/samples I need"
"label":"Easy to understand"
"label":"Solved my problem"
Need to tell us more?