• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

google maps application using java

 
Ron Cam
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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
ron
 
Steve Luke
Bartender
Posts: 4181
22
IntelliJ IDE Java Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This should help: http://code.google.com/apis/maps/index.html
 
Steve Luke
Bartender
Posts: 4181
22
IntelliJ IDE Java Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And welcome to the Ranch!
 
Ron Cam
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

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 ?

thanks
for you help again.
ron
 
Steve Luke
Bartender
Posts: 4181
22
IntelliJ IDE Java Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
even if I know only to program with Java not with Javascript ? Is there any option for me ?

thanks
ron
 
Ron Cam
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ah and gwt4nb is a Google Web Tool Kit plugin for netbeans
 
Steve Luke
Bartender
Posts: 4181
22
IntelliJ IDE Java Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Pat Farrell
Rancher
Posts: 4678
7
Linux Mac OS X VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15441
41
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Pat Farrell
Rancher
Posts: 4678
7
Linux Mac OS X VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

I have one of those too, and I've written some Java code (open source) Pat's Java library with GPS reading code.

I just use web-apps to do the integration with Google Maps. Perhaps they have a desktop integration, but Google wants you to use the web.

Which brings me back to my question for the OP, what exactly do you mean?

If I had an assignment to do this, I'd sure write some Java beans to work with JSPs talking to the Google Maps Javascript API
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pat Farrell wrote:If I had an assignment to do this, I'd sure write some Java beans to work with JSPs talking to the Google Maps Javascript API

That's probably the issue - JSP implies a servlet engine, and JavaScript implies a browser - but neither may be in play here.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic