Icontem

File: sample.js

Recommend this page to a friend!
  Classes of Dusan Boskic  >  GPS2City  >  sample.js  >  Download  
File: sample.js
Role: Example script
Content type: text/plain
Description: Sample
Class: GPS2City
Determine the city at a latitude and longitude
Author: By
Last change: Latitude, longitude
Date: 4 years ago
Size: 371 bytes
 

Contents

Class file image Download
/*
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);
});