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
Related
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!
I am totally new to this api and I was wondering if there is a way that I can use the maps offline. I don't mind the size of the application be large so if there are anyways involved caching or something else size related, it is not a problem
Any suggestions?
ps: if it is not possible in google's api,is there a way to do this with another api form another source which provides a mapping service?
You can try to use osmdroid to work offline with Google Maps. Osmdroid is a replacement for Android's MapView class. It also includes a modular tile provider system with support for numerous online and offline tile sources and overlay support with built-in overlays for plotting icons, tracking location, and drawing shapes.
You can follow this tutorial in how to use it.
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..
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.
I am very keen to use google charting (visualization api) in my project in which I am making a network monitoring tool. I want to make a client app which will connect server at a port and get statistics about the application. I want to display the statistics using charts.
I tried to read good docs, but its quite confusing, I tried some other websites but no solution. Can anyone provide any good source to learn how to use google charts to display live running data?
Hey , I think charts4j will help you . http://code.google.com/p/charts4j/ .
charts4j allows you to
programmatically generate charts from
within your Java code via a simple,
intuitive, and lightweight Java API.
Moreover, it hides the ugly details of
creating the URL parameters that are
necessary for communicating with the
Google Chart API.