Results 1 to 3 of 3
  1. #1
    kkid is offline Senior Member
    Join Date
    Jul 2012
    Posts
    245
    Rep Power
    8

    Default How do I utilise Google's "Directions API" in my Java Swing program?

    I am making a program which will have the user enter their location (by postcode) into the GUI (Swing).

    I want to use Google's Directions API (https://developers.google.com/maps/d...on/directions/) to find directions from this user input address to another address. However, I have never gone about using external APIs before and even going as far as installing the necessary files on my system to get started is getting complicated.

    How do I go about using this API in my own application? I have tried following the tutorials (e.g. https://developers.google.com/gdata/...ava_client_lib) but I suspect I may even be using the wrong tutorial (I am seeing references saying that the client thing is depreciated).

    Can somebody who has knowledge of the Google API or just using wed APIs in general advise me please?

  2. #2
    kkid is offline Senior Member
    Join Date
    Jul 2012
    Posts
    245
    Rep Power
    8

    Default Re: How do I utilise Google's "Directions API" in my Java Swing program?

    To be more specific. Using their web services APIs which are invoked using a simple URL passed to their servers and getting meaningful data in the form of either JSON or XML.

    (I think, this is based on research I have been doing - I may be being delusional here, I don't know)

  3. #3
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    14,423
    Blog Entries
    7
    Rep Power
    27

    Default Re: How do I utilise Google's "Directions API" in my Java Swing program?

    Have a look at the URLConnection class.

    kind regards,

    Jos
    Build a wall around Donald Trump; I'll pay for it.

Similar Threads

  1. Making GUI to basic "Hello World" like program "Frank"
    By mindsword in forum New To Java
    Replies: 2
    Last Post: 07-27-2014, 11:16 PM
  2. Replies: 0
    Last Post: 12-07-2012, 08:29 AM
  3. Program skips "If" code and goes straight to "Else"
    By Logik22 in forum New To Java
    Replies: 12
    Last Post: 01-21-2012, 05:40 PM
  4. Replies: 2
    Last Post: 03-18-2009, 08:36 PM
  5. Replies: 1
    Last Post: 10-20-2008, 07:35 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •