google java api - is there a NearBySearch method? - java

I know there's a web service for performing a nearby search but is there an equivalent method in the one of the java API's?
I'm trying to search for nearby places that match a given name so that I may mark them on a map. Closest I have found, with the java API's, is to use getAutocompletePredictions which gives the placeId. Using that, I can get the location. That's potentially a lot of separate requests.
Can anyone help/advise?

The Places API for Android doesn't have this functionality yet. You can see a corresponding feature request in Google issue tracker:
https://issuetracker.google.com/issues/37530354
Feel free to add star to this feature request to add your vote and subscribe to notifications.
In the meantime you should use Places API web service in order to do nearby and text searches. There is a Java Client for Google Maps Services that you can find on github:
https://github.com/googlemaps/google-maps-services-java
I would suggest trying this library. Hope this helps!

Related

Are Microsoft graph REST APIs responses same as Microsoft live sdk? As we know that live sdk now decommissioned

As Microsoft live sdk depreciated, I don't know it's responses and I need to migrate my application to Microsoft graph so I want know old responses so that easily I can compare old and new responses and accordingly do changes in my code.
I am a lead on Microsoft Graph. Yes, you should be moving to calls on graph.microsoft.com. We do not provide documentation on what the api mapping is between the live SDK is to Microsoft Graph SDK is.
The docs for Microsoft Graph are all here https://learn.microsoft.com/en-us/graph/
and we have details on how to get started with our SDKs here. https://learn.microsoft.com/en-us/graph/sdks/sdks-overview
I'd be interested to understand how many different apis you're querying and happy to help with the mapping. The learn section of the docs should help yyou narrow down the APIs you'll need to call. For instance, anything on the Users profile would be here https://learn.microsoft.com/en-us/graph/azuread-users-concept-overview

How to connect android app with data store on app-engine

I am working with some friends on an android application and we want to use data store on google app engine.
Can anyone help me find a tutorial on how to create a connection between the android app and the data store, I couldn't find a good one myself.
Thanks.
I suggest you look at a few, quite recent Google services:
Endpoints will help you create an interface between your server code and your client, including generating a client library and doing OATH2 authentication.
Volley is an Android library that makes it easy to perform the requests to the server. (There are a number of 3rd party alternatives to Volley that are also good.)
Mobile Starter Kit is a simple way to get started, doing everything from the client initially, but with the ability to customize the server later.
Take a look at this Google blog post from a few days ago:
http://googlecloudplatform.blogspot.ca/2013/11/connecting-mobile-developers-to-the-cloud-with-google-cloud-endpoints.html
Those are good starting points, but don't assume you should use the recommended Google services. Endpoints for example, will lock you into GAE and it doesn't sound like you need the multi-platform support it offers. You could just create a REST/JSON servlet using one of many libraries.
I reccomand DropBox API.
It is not what you asked, but I guess you didnt start using the Google API because you are looking for a tutorial..
DropBox API has a lot of info and tutorials and it's kinda easy to handle..

About using google client api

I am planning to write a native java application that can get some blogs by searching with a few words. And I know we can get some results by searching on google blog search. So I want to know if I can write such an application by using google blog search. But I found that google seems just offer a javascript API for its blog search. So could anyone tell me how to use google's blog search service in java?
If it's not possible, do you guys know some other services that can do similar thing?
Thanks a lot
Google's blog platform is Blogger, and it provides an API for working with the blogs on that platform. In addition, there are a number of client libraries for this API, including Java.
Here's some resources to help you get started:
Here you can download the Java client library for the Blogger API
Here is the documentation for the Blogger API in general.
You can see information on the different types of API calls you can make here.
And here is a link to the APIs-explorer for the Blogger API, where you can play around with its capabilities
If you're new to using the Google Java Client Libraries for accessing Google APIs, you may also want to look at the documentation for the client libraries in general, here
It looks like by default, the API only supports searching for posts in a given blog, not across all blogs, so you may need to do something clever to achieve your end goal (but it wouldn't be fun if it was given all away for free, right?)

Java API for creating Google Maps or Earth

I am looking for a Java API to access Google Maps or preferably Google Earth. But seem to be have problems finding the right solution after searching the web.
From a Java desktop application, I want t be able to create a map with about 1,000 custom points on which will have been pre-geocoded with Long/Lat. Once the application has created the map (with points on), I want the application to show the user the results.
I know you can't embed a map in an application due to T&C's of the service, so would be happy to launch a browser session, or preferably launch Earth and auto show the map on that.
I did find the Google Maps Web Services API, which let me do the geo-coding from Java using JSON, but can't find anything like this for actually creating maps and adding points to maps.
I also found some old java GDATA API's, but these seem deprecated now.
Any advise on the best current way to do this would be appreciated.
You can try to use JxMaps product to integrate map to Java desktop application. Custom points can be displayed as markers.
you can check the google map documentation of geocoding API
here is the link:
https://developers.google.com/maps/documentation

Java implementation of Google Custom Search API

I need some help using the Google API in Java. Basically, I need to create a web application in Java that will call the Google Custom Search Engine (using their API) and retrieve the result.
I have read the Google starting guide, but not sure how to use their API. Can anyone please point me towards some examples or tutorial links.
The download off http://google-api-java-client.googlecode.com/ has all the libraries you'll need, but the samples doesn't have anything specific to Custom Search. The closest you'll get is here: they provide a jar file with source code. It doesn't use the Google Java client library, but might get you started with the REST api.

Categories