If you want to use OpenStreetmaps for this, you can just make a query (using jquery):
$.get(location.protocol + '//nominatim.openstreetmap.org/search?format=json&q='+address, function(data){ console.log(data); });
You will get JSON objects containing (and not just) lat and lon.
source share