Para modificarlo, tendremos que añadir lo siguiente:
<hint name="max-length">100</hint>
function geoCode() {
var sheet = SpreadsheetApp.getActiveSheet();
var range = sheet.getDataRange();
var cells = range.getValues();
var latitudes = [];
var longitudes = [];
for (var i = 0; i < cells.length; i++) {
var address = cells[i][0];
var geocoder = Maps.newGeocoder().geocode(address);
var res = geocoder.results[0];
latitudes.push([res.geometry.location.lat]);
longitudes.push([res.geometry.location.lng]);
}
sheet.getRange('B1').offset(0, 0, latitudes.length).setValues(latitudes)
sheet.getRange('C1').offset(0, 0, latitudes.length).setValues(longitudes);
}
Google Maps API error: MissingKeyMapError https://developers.google.com/maps/documentation/javascript/error-messages#missing-key-map-error
_.rb @ maps.google.com/maps/api/js?sensor=false&callback=Alfresco.component.GoogleMap.Callback:38
util.js:220 Google Maps API warning: NoApiKeys https://developers.google.com/maps/documentation/javascript/error-messages#no-api-keys
rB.j @ util.js:220
(anonymous) @ js?sensor=false&callback=Alfresco.component.GoogleMap.Callback:139
(anonymous) @ js?sensor=false&callback=Alfresco.component.GoogleMap.Callback:56
(anonymous) @ js?sensor=false&callback=Alfresco.component.GoogleMap.Callback:53
(anonymous) @ js?sensor=false&callback=Alfresco.component.GoogleMap.Callback:56
_.G @ js?sensor=false&callback=Alfresco.component.GoogleMap.Callback:55
(anonymous) @ js?sensor=false&callback=Alfresco.component.GoogleMap.Callback:56
_.v @ js?sensor=false&callback=Alfresco.component.GoogleMap.Callback:35
Yc @ js?sensor=false&callback=Alfresco.component.GoogleMap.Callback:56
(anonymous) @ js?sensor=false&callback=Alfresco.component.GoogleMap.Callback:139
script.src = window.location.protocol + "//maps.google.com/maps/api/js?sensor=false&key=NUESTRA_API_KEY&callback=Alfresco.component.GoogleMap.Callback";
Liferay-Portal:Liferay Portal Community Edition 6.2 CE GA6 (Newton / Build 6205 / January 6, 2016)
http.header.version.verbosity=partial
Liferay-Portal:Liferay Portal Community Edition
A menudo una pregunta que nos hacen es qué cookies se están utilizando en mi página y para qué sirven. Para ver las cookies, podemos selecci...