+ Reply to Thread
Results 1 to 2 of 2

Need help with VBA code for google API

  1. #1
    Registered User
    Join Date
    06-07-2013
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2007
    Posts
    18

    Need help with VBA code for google API

    Hello all,

    I have a spreadsheet that uses a google distance API which calculates the distance between two points.

    I'm trying to accomplish 2 things:

    #1 - The API I use, someone gave me online somewhere a while back. I haven’t used it in a while and am now running into issues with query limits. Yesterday I got my own API Key from google, only I don’t know where to place it in the API coding for it to work properly (so google know's it's "me")

    #2 - Google limits the amount of queries you can do with their APIs (per second & per day). This coding asks for DISTANCE which is the only thing I need. It also asks for directions and travel time which I do NOT need. I'd like to remove that coding so it doesn't count as a query against me.

    Thanks in advance for ANY help you can provide!

    Please Login or Register  to view this content.

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,887

    Re: Need help with VBA code for google API

    1. You'll need to implement OAuth2. Read through link below for details.
    http://ramblings.mcpher.com/Home/exc...s/googleoauth2

    2. From the looks of it, it's single request/query that returns all the results for single set (i.e. from starting address to destination, it has distance, direction & travel time in single response). So you probably don't have to worry about that. Rather limit is how many starting point and destination you query.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Converting vba code into google spreadsheet script:dynamic dropdownlist
    By paradise2sr in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 2
    Last Post: 03-05-2018, 11:00 PM
  2. vba code to Get nearest locations from Google map
    By xlhelp7 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-16-2016, 12:59 AM
  3. email row contents based on cell values (google sheets populated by google forms)
    By reedg in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 0
    Last Post: 01-13-2016, 02:55 PM
  4. VBA Route Calculator - Google Maps Api 22 Minutes quicker than Actual Google Website
    By lookingforhelp1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-06-2015, 01:23 PM
  5. Query Google Drive using VB code
    By Mike Eburne in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-31-2013, 03:36 AM
  6. Export KML file to Google Maps with VBA code
    By Pelusa in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-25-2013, 09:30 AM
  7. [SOLVED] A VBA Code to Draft / Prepare Multiple Emails in Google
    By spiwere in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-06-2013, 09:38 AM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1