File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Google driving directions in java application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Google driving directions in java application" Watch "Google driving directions in java application" New topic
Author

Google driving directions in java application

Nick Apostol
Greenhorn

Joined: Oct 18, 2010
Posts: 6
Good day to all,

For my second lab in a software engineering course, we were asked to develop
a order processing system for a group of restaurants. One of the features of this system would
be the ability to have delivery pathes explicitely outlined (map and directions). We were asked to use the
Google Maps API. Lastly, I wish to mention that the application is a Java Swing application.

I have managed to display the map using static google maps (with various waypoints etc...)
My problem lies with the driving directions. I have thought of two approaches and would greatly appreciate
any advice on the matter.

Approach 1:

Parse the xml file generated by the google directions api and generate a simple html string that can be inserted in a
JEditorPane

Approach 2:

Use xslt to transform the generated xml file (by google) into a basic html file to be displayed in a JEditorPane


While the output is similar, I realize there are subtle differences between the two approaches. I apologize if this seems
like a trivial matter to many. Again any advice (or documentation) would be greatly appreciated.

Sincerely
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Google driving directions in java application
 
Similar Threads
How I can display html page on LABEL ?
Shared Libraries & Logging
JEditorPane vs IE
Google Maps in a java application
Functionality working in IE but not Firefox (Google Map API experience helpful!)