• 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
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

Google driving directions in java application

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
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
 
This tiny ad is wafer thin:
Garden Master Course kickstarter
https://coderanch.com/t/754577/Garden-Master-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic