<html><body>
<script type="text/javascript" src="
http://loki.com/plugin/files/
loki.js"></script>
<script type="text/javascript">
function init() {
var loki = new LokiAPI();
loki.onSuccess = function(location) {
document.getElementById('address').innerHTML =
location.house_number+' '+location.street+'<br/>'+location.city+',
'+location.region_code+' '+location.postal_code+'<br/
>'+location.latitude+', '+location.longitude;
};
loki.onFailure = function(error, msg){
alert('An error has been encountered ('+error+'). '+msg);
};
loki.setKey('beta');
loki.requestLocation(true,loki.FULL_STREET_ADDRESS_LOOKUP);
}
window.onload = init;
</script>
</body></html>
I just copied/pasted this:
http://www.loki.com/why/demoapps/simple