Commit 7fe885dd authored by Maciej Kowalczyk's avatar Maciej Kowalczyk :8ball:
Browse files

Poprawki

parent f3b31004
No related merge requests found
Showing with 5 additions and 3 deletions
+5 -3
GOOGLE_API_KEY='AIzaSyB0Png694AM5JbGF32DhpwYhhvavPUB2Xc';
reverseGeocode = {
data: { },
getActualLocation: function (url, callback) {
......@@ -14,11 +16,11 @@ reverseGeocode = {
});
},
getSecureLocation: function (lat, lng, callback) {
var url = 'https://maps.googleapis.com/maps/api/geocode/json?latlng='+lat+','+lng;
var url = 'https://maps.googleapis.com/maps/api/geocode/json?latlng='+lat+','+lng+'&key='+GOOGLE_API_KEY;
this.getActualLocation(url, callback);
},
getLocation: function(lat, lng, callback){
var url = 'http://maps.googleapis.com/maps/api/geocode/json?latlng='+lat+','+lng;
var url = 'http://maps.googleapis.com/maps/api/geocode/json?latlng='+lat+','+lng+'&key='+GOOGLE_API_KEY;
this.getActualLocation(url, callback);
},
getAddrObj: function(){
......
Package.describe({
name: 'jaymc:google-reverse-geocode',
version: '0.0.6',
version: '0.0.7',
summary: 'Calls Googles reverse geocode API converting GPS lat and lng to physical address',
git: 'https://github.com/JayMc/meteor-google-reverse-geocode',
documentation: 'README.md'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment