Thanks, I found the solution. I am giving longitude in wrong format. I need to give -074.008713 instead of -74.008713.
Thanks, snm On Apr 3, 10:09 am, snm <[email protected]> wrote: > Hi, > > I am trying to get housing item values by putting latitude and > longitude values in the search pattern, but I am not able to. > > The URL is > :http://www.google.com/base/feeds/snippets/?max-results=100&bq=%5Bitem... > > and search pattern is : [item type: housing][location:@ > +40.706232-74.008713] > > The sample code: > > String SEARCH_STRING1 ="[item type: housing][location:@ > +40.706232-74.008713]"; > GoogleBaseService service = new GoogleBaseService("Sample", > DEVELOPER_KEY); > > GoogleBaseQuery query = new > GoogleBaseQuery(FeedURLFactory.getDefault > ().getSnippetsFeedURL()); > query.setGoogleBaseQuery(SEARCH_STRING1); > query.setMaxResults(10); > GoogleBaseFeed feed = service.query(query); > > Could you please provide me the solution, if there is an alternate way > to search with Geopoints (Latitude and Longitude)?. > > Thanks, > snm --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
