Reverse Geocode using API Key for Google Sheet - reverse

I need to get a working JSON script for Google Sheet to get "FOMATTED_ADDRESS" for more than 5,000 GPS coordinates.
I am no expert in JSON nor Javascipt.. I only need a simple script that works in Sheet. All I have tried I get an error in the result of the query..
Can somebody help?
Thanks!

Related

Can Here Developer API be used with Google Sheets to geocode?

I've been using a script on google sheets to get coordinates from addresses in a certain column that gets updated. Is there a way to use the Here API instead to get those coordinates? Googles limit is much less than here which is why I'm trying to switch.
Yep, you can use [HERE Geocoding API].(https://developer.here.com/documentation/geocoding-search-api/dev_guide/topics/endpoint-geocode-brief.html)
Here's what a call looks like using an API Key:
https://geocode.search.hereapi.com/v1/geocode?q=5+Rue+Daunou%2C+75000+Paris%2C+France&apiKey=API_KEY

Why am I receiving "Could not fetch URL" error on Google Sheets Import XML?

New here, and still trying to wrap my mind around this importXML tool in Google Sheets. Seem to be able to get it to work on certain websites, but when data is deeply embedded in code, I struggle.
Goal: To pull in weight of items listed on bricklink.com to a Google Sheet.
Link to my Google Sheet: https://docs.google.com/spreadsheets/d/1_vhCkEJXofxMj1Cg117RgPJSFTqPF0ijo_f60mDR6MU/edit?usp=sharing
When I copy the xpath from the source code on the site, I'm given this value: //*[#id="item-weight-info"].
The existing fomula I have is: =IMPORTXML(D2,"//*[#id='item-weight-info']")
D2 Contains the web address where it concatenates the website + the item number.
Error I'm receiving is: "Could not fetch url: https://www.bricklink.com/v2/catalog/catalogitem.page?S=21318"
I did come across a potential JSON solution, set up a JSON function in the sheet, but have never written a script before. Tried to copy a script, and tweak as needed, but still no luck.
Is there an easier way to do this that I'm overlooking?
Any guidance or suggestions would be greatly appreciated. Thank you for your time!

Can Google Apps Script process GET query string and post to Google Sheets?

I'm trying to learn Apps Script. I wonder if it is possible for a script to receive GET requests and then enter the query string values to a Google Sheet.
For example, if we execute this command:
$ curl https://script.google.com/d/xxx-xxx-xxx/?header1=value1&header2=value2&headerN=valueN
Then we could expect a Google Sheet to be populated with column headers header1, header2, up to headerN along with rows of values from the query string.
Would this be possible? A simple sample Apps Script will be appreciated.
Yes :) This is possible. Please refer to the request parameters > e.queryString.
I suppose, that should do the trick but please feel to come back here again in case you require further clarifications.

Google Maps Xpath using Google Spreadsheet IMPORTXML

I am trying to use Pull data from google maps results using IMPORTXML function in google spreadsheet but I am getting error #N/A
=importxml(http://maps.google.com/maps?q=cosmetic+surgeon+NEAR+New+York%2C+NY%2C+United+States&output=classic&dg=ntvb,"//div[#class='name lname'])
or
=importxml(http://maps.google.com/maps?q=cosmetic+surgeon+NEAR+New+York%2C+NY%2C+United+States&output=classic&dg=ntvb,//SPAN[#class='pp-place-title'])
but nothing is working.. Any thoughts???
Thanks
If you're going to give importxml literal strings as arguments, they need to be double-quoted:
=importxml("http://maps.google.com/maps?q=cosmetic+surgeon+NEAR+New+York%2C+NY%2C+United+States&output=classic&dg=ntvb", "//div[#class='name lname']")

How do you retrieve data from a Google Docs Spreadsheet?

I found this wonderful example of pulling data from a Google spreadsheet in JSON:
http://code.google.com/apis/gdata/samples/spreadsheet_sample.html
However, I can't seem to get it to work for a spreadsheet I created. I've made the doc public and published it, and tried every possible tweak on the key and sheet "name". Has anyone successfully used this? I've seen the Zend GData library, but would rather use JSON.
Thanks in advance for any tips.
I tried to work with the JSON feed a few months ago and I remember having to jiggle the handle a little to get the feed URL to work. I don't recall exactly what I did, but the bigger problem is that once you get it working the feed itself is kind of a mess.
I found that a much better solution (for my purposes, at least) was to use the CSV feed and then convert that to JSON on the server. I actually wrote a blog post outlining the steps a few weeks ago:
http://www.ravelrumba.com/blog/json-google-spreadsheets/
Google Spreadsheet as JSON can be done using Google Apps Script !
In Google Spreadsheet go to Tools > Scripts > Script Editor
Insert this code and hit the play button, use generated URL for generating JSON.
function getValues() {
var range = SpreadsheetApp.getActiveSheet().getDataRange();
var json = Utilities.jsonStringify(range.getValues())
Browser.msgBox(json);
}​
also give it a try for Simple example of retrieving JSON feeds from Spreadsheets Data API