I have the following code:
/* * converts a string to geolocation and returns it */ function stringToLatLng(string){ if(typeof string == \"string\"){
var latitude = results[0].geometry.location.lat(); var longitude = results[0].geometry.location.lng();
ref: Javascript geocoding from address to latitude and longitude numbers not working