Enrichments /
Google Maps
No-Code Enrichment with
Google Maps
Calculate drive time between member and provider locations for network adequacy and site-of-care analysis.
Sign Up Free

Google Maps API for Travel Distance and Time

Drive Time Is How Network Adequacy Gets Measured

Federal and state network adequacy standards are written in travel time and distance: a plan must have a provider of a given specialty within so many minutes of its members. Testing a network against those standards means calculating drive time between thousands of member and provider locations, not straight-line distance.

Where this comes up:

  • Network adequacy testing: Check a provider network against time and distance standards before a filing.
  • Site-of-care steerage: Weigh a lower-cost facility's negotiated rate against the extra travel it asks of a member.
  • Market entry: Measure how much of a population sits within reach of a candidate site.
  • Referral patterns: Identify where patients bypass a nearer in-network provider.

Pair this with negotiated rate data to see cost and access together rather than one at a time.

The Google Maps Platform contains a wealth of location information that allows you access to real world data and insights with maps, routes and places APIs. It can all be accessed via API and then used to create real-time experiences for your users. In this case, we are going to use the API responses to enrich our data.

This assumes you have set up a Google Cloud project (instructions here) and enabled billing. Once signed up, you will receive an API key. 

Google Maps Distance Matrix API Docs

Google Maps Distance Matrix API cURL request

Provider Website: https://developers.google.com/maps

Provider Enrichment Docs: https://developers.google.com/maps/documentation/distance-matrix/start

Endpoint: https://maps.googleapis.com/maps/api/distancematrix/json?origins=Washington%2C%20DC&destinations=New%20York%20City%2C%20NY&units=imperial&key=YOUR_API_KEY'

Token / Registration Required: Yes

Step 1. In Gigasheet, head to the Enrichments function and select Custom Enrichment. First we paste in the cURL request from the Google Maps Platform Distance Matrix API docs. Be sure your request starts with cURL by using the tabs at the top to select cURL. Next, replace "YOUR_API_KEY" with your token from the Google Maps Platform portal.

Step 2. On the next screen we’ll insert the column variable from our Gigasheet sheet for the address. In this case, we highlight the destination, “New York City” text in the input (the %20 are escape characters for spaces), and then select our Address column and click +Insert Column Reference. We will also edit the source from “Washington DC” to “Austin”. Then click Next.

Step 3. In this screen we see a preview of the results. Gigasheet makes requests for the first three rows and shows the Google Maps Platform Distance Matrix API  response. At this point select the fields you want to be inserted into your sheet. We recommend hitting Select All because you can always delete columns later.

 

Step 4. Finally, confirm the number of requests is to your liking, and when ready click Run to kickoff the custom enrichment process. It’s ok to leave or close the sheet; the custom enrichment will keep running and you’ll receive an email once the job has been completed. You can monitor the progress of your enrichment, or cancel the job at the top of the sheet. 

Step 5. Once completed, Gigasheet will send a completion toast and refresh the page. The result will show generation of new columns based on the Google Maps Platform Distance Matrix API. 

Here are the distance measurements and travel time between the addresses.

Try it Out

Healthcare price intelligence

National Coverage
Scored & Benchmarked Rates
Expert Support
Request A Demo
LOW $1,804
MEDIAN $6,537
HIGH $21,743