views:

63

answers:

2

Hello stackoverflow community!
I'm trying to find a way to do a search via keywords from my Android app and then get back a list of business (name, address). Including a local business listing is a plus! Any good advice to look for it or key methods to know of?

A: 

How about the zoominfo directory which has an API http://developer.zoominfo.com/documentation

Jim Blackler
Not bad. Thanks Jim! This API returns a XML of the query which I can try parsing out. However, I'm still trying to decipher how to submit my query from say... a EditText field of my Activity. What permissions should be involved to connect to the internet and how do you query that zoominfo anyways. What do you suggest is the best way to receive that XML of the lookup?
Johnson Tey
Only time for a quick answer:To read the feed look at javax.xml.parsers.SAXParserFactory.Get an XMLReader with XMLReader xr = SAXParserFactory.newInstance().newSAXParser().getXMLReader();Then set a ContentHandler with xr.setContentHandler() to parse the input, and do xr.parse(new InputSource(new URL("xx").openStream());where "xx" is your API URL.
Jim Blackler
Hello Jim. Thank you. BTW, I have visited your blog before a few times and found solutions there. It's very cool that you are answering my question! :) Thanks for being a generous teacher.
Johnson Tey
ps. I will still investigate the input part but this parsing advice looks good.
Johnson Tey
A: 

Take a look at http://compass.webservius.com

Eugene Osovetsky