/*
GPS2City(latitude, longitude, callback);
Callback is added if You want to use this as a fallback to async online library.
*/
GPS2City(44.878731593, 20.17879744, function(data) {
console.log(data);
});
/*If last line in api.js ({}) replaced with ({}, YourObject)*/
YourObject.GPS2City(44.878731593, 20.17879744, function(data) {
console.log(data);
});
|