string address="";
GBaseService service = new GBaseService(
"Google-Tutorial-1.0", this.GoogleBaseKey);
GBaseQuery query = new
GBaseQuery(GBaseUriFactory.Default.SnippetsFeedUri);
query.GoogleBaseQuery = " [item type: Housing][listing
type:for sale][location : \"" + address + "\"]";
query.Refine = true;
query.StartIndex = 0;
query.NumberToRetrieve = 25;
query.Content = "geocodes";
GBaseFeed feed = null;
try
{
feed = service.Query(query);
}
foreach (GBaseEntry entry in feed.Entries)
{
GBaseAttribute attr =
entry.GBaseAttributes.GetAttribute("bedrooms");
string bedrooms = attr.Content;
}
On Jun 10, 10:37 am, Surya <[email protected]> wrote:
> Hi,
>
> Can anyone send me the code to build a sample application to search
> for real estate information so that when an address is given as
> parameter, it should return the search data as string or XML.
> I need to do a C# application using Google Base API.
>
> Thanks.
--
You received this message because you are subscribed to the Google Groups
"Google Base Data API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-base-data-api?hl=en.