[Developers] how to get geolocation for /business/company/headquarters?
Christopher R. Maden
crism at metaweb.com
Sat Jan 10 04:04:39 UTC 2009
Rob Warren wrote:
> This query is not returning any of the /location/location properties,
> even though the schema shows that /location/location is an inherited type.
The special "*":null wildcard only picks up properties of /type/object
and of the explicit or expected type of the object. Since you specified
no type, it only returns the company headquarters properties.
You could do:
"headquarters":[
{
"*":null,
"type":"/location/location"
}
]
but you would lose the headquarters properties. If you want properties
relating to more than one type in the same query, you must ask for them
explicitly, with fully-qualified property IDs.
~Chris
--
Christopher R. Maden
Data Architect
Freebase.com: <URL: http://www.freebase.com/ >
Metaweb Technologies, Inc. <URL: http://www.metaweb.com/ >
More information about the Developers
mailing list