This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
I need to build an application that contains a google map and the application will need to contain various buttons that perform certain actions on this google map. Like when pressing a button the maps shows a route on the map.
can you help me please ? I dont need coding I just need some help on how to get started !
thanks for the help. Im sure I will come back with more questions since these google api's are new to me.
Also I normally work with java netbeans. Fof me to make an app that has a map that works with goole maps API's I need to use the gwt4nb ? And the gwt4nb all it does is to convert the java code to javascript ? also even if I make a gui from the netbeans, this also will be converted into javascript by the gwt4nb ?
I don't know what gwt4nb is, but anything which is IDE-specific is not something I would use. There are different options on the page I pointed you to, depending on the type of application. For example, if you are making a Web / Servlet / JSP application, then I would use the JavaScript API (as it would be running in a browser). If you are making a client-side application then I would probably use the Web Services, since I would be able to use JSON or the Java's URL utilities to communicate directly from the application.
Ron Cam
Greenhorn
Joined: Oct 15, 2009
Posts: 4
posted
0
even if I know only to program with Java not with Javascript ? Is there any option for me ?
thanks
ron
Ron Cam
Greenhorn
Joined: Oct 15, 2009
Posts: 4
posted
0
ah and gwt4nb is a Google Web Tool Kit plugin for netbeans
Ron Cam wrote:even if I know only to program with Java not with Javascript ? Is there any option for me ?
thanks
ron
Have you read the Web Service API? That allows you to send requests to Google Maps via URLs. The data is returned as either JSON or XML. You can use Java (or any other language) to send requests to those URLs and to interpret the JSON or XML. So yes, you can use their Web Service API with Java, and no need for Javascript.
What, exactly, do you mean by application? Most google maps applications are written as part of a web applicaiton, where the result of your Java code is an HTML page containing calls to the Google Maps API.
I've never heard of a standalone desktop application using Google Maps. It may exist, but that's not how I integrate Google Maps to my code.
Pat, such applications certainly exist. I have a GPS logging device - you take it with you while you go on a trip, for example, and it logs your GPS position a few times a minute. At home, you can read the log information from the device and with some software it shows on a map exactly what your route was. It's a desktop application that has Google Maps integrated into it to display the map.
But I don't know how exactly it does that (or even whether it's written in Java). Maybe it uses an embedded web browser widget that shows the map.
Jesper de Jong wrote: I have a GPS logging device - you take it with you while you go on a trip, for example, and it logs your GPS position a few times a minute. At home, you can read the log information from the device and with some software it shows on a map exactly what your route was. It's a desktop application that has Google Maps integrated into it to display the map.