Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Google driving directions in java application  RSS feed

Nick Apostol
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

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.

With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!