Computing the guid from a location name

0 views
Skip to first unread message

viksit

unread,
Mar 7, 2010, 12:19:58 AM3/7/10
to GeoAPI
Hello all,

Is there a simple way to map the guid of a location through its name?

For instance, I'm trying to figure out the GeoAPI guid for a
restaurant in San Francisco, "Burma SuperStar" - but I get a number of
names and guids from the search results,

[u'Superstar Satellite', u'Foundation for The People of Burma',
u'Superstar Mart LLC', u'Venus Superstar', u'Burma Overseas Friendship
Association', u'Burma Super Star Restaurant']

and have to then use some similarity measure to determine which the
right one is. Is there an easier method to do this?

[Alternatively, are people aware of any such location databases that
are being used by GeoAPI and similar services that could be used
here?]

Cheers
Viksit

marius a. eriksen

unread,
Mar 7, 2010, 2:41:40 AM3/7/10
to geo...@googlegroups.com
hello Viksit - this sounds to me like
you're dealing with a data matching
problem.

there are many ways to approach it.
typically you want to use some information
to correlate with. for example if you know
that "burma superstar" is a restauraunt,
you can inspect the entities you get back
from your search, and filtering those that
aren't restaurants. (similarly, you could
use any of the metadata available for that
entity in the GeoAPI).

marius.

viksit

unread,
Mar 7, 2010, 4:17:28 AM3/7/10
to GeoAPI
Hey Marius,

I wasn't aware that I could use the "verticals" field as available in
"view/listing" through a simple keyword search.

The JSON results returned just contain a field of the form "type":
"business", which is why I haven't been able to do further correlation
or filtering.

Is there an API function I'm missing, that allows results from a
keyword search to include verticals as well? The view/listing only
works when you know the guid of the location, and the same goes for
any MQL queries which require a lat/long (that result in the same
problem!).

Cheers
Viksit

Reply all
Reply to author
Forward
0 new messages