Win a copy of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques this week in the Server-Side JavaScript and NodeJS forum!
  • 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
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Collecting Data from Google Maps API

 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
For a servlet I want to make I want to collect data on travel times between different locations to group them based on some parameters.  I recently saw the Google Maps API is open to use Google Maps in an application but that's not what I need.  Is there a way to collect the information like distance, arrival times between two addresses, and the like in a purely numeric form?
 
Sheriff
Posts: 26796
82
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Why isn't that what you need? From the Java code in your servlet it's possible to send data (location, address, etc) to the Google Maps API and other Google APIs to produce the data you require.
 
Christian Antfeld
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What I mean to say is the description of using the Google Maps API is to embed the Maps GUI but I could be misunderstanding what's being said.  I'm a relative beginner and don't know If I misinterpreted the wording.  

What I want is a text-only set of data returned.  Do you know if that is possible with the Google Maps API?
 
Saloon Keeper
Posts: 7108
165
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
An API is not a GUI. The Maps API gives you access to all of the geo information without any GUI.
 
Paul Clapham
Sheriff
Posts: 26796
82
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You have probably seen descriptions where you write JavaScript code which runs in your browser and gets data from Google Maps. But you don't want to do that. Which is fine -- there are other ways to use the Google APIs which don't depend on being called from JavaScript. You would like to use Java, so java google maps is an appropriate set of keyword to use in a web search.
 
Christian Antfeld
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Tim Moores wrote:An API is not a GUI. The Maps API gives you access to all of the geo information without any GUI.



An API can make function calls so it COULD cause GUI elements to be drawn on a screen if that functionality is available.  Thanks for the info.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic