• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

google maps application using java

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 4179
22
IntelliJ IDE Python Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This should help: http://code.google.com/apis/maps/index.html
 
Steve Luke
Bartender
Posts: 4179
22
IntelliJ IDE Python Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
And welcome to the Ranch!
 
Ron Cam
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 4179
22
IntelliJ IDE Python Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ah and gwt4nb is a Google Web Tool Kit plugin for netbeans
 
Steve Luke
Bartender
Posts: 4179
22
IntelliJ IDE Python Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Rancher
Posts: 4804
7
Mac OS X VI Editor Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 4804
7
Mac OS X VI Editor Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
I think I'll just lie down here for a second. And ponder this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic