You can try this R package: https://cran.r-project.org/web/packages/gmapsdistance/gmapsdistance.pdf (here is an example on how to use it: https://rdrr.io/cran/gmapsdistance/src/demo/example6.R). The only difficult part is that the API has restrictions, i.e. not everything is free. But, if you have only a few queries, it can work out just fine.
You can use PySpark, Python, Scala such any language to get the data from Google Maps. After getting the data out from google maps application, you can persist data with on Nosql or sql databases.