Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Maciej Kowalczyk
meteor-google-reverse-geocode
Commits
7fe885dd
Commit
7fe885dd
authored
6 years ago
by
Maciej Kowalczyk
Browse files
Options
Download
Email Patches
Plain Diff
Poprawki
parent
f3b31004
master
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
google-reverse-geocode.js
+4
-2
google-reverse-geocode.js
package.js
+1
-1
package.js
with
5 additions
and
3 deletions
+5
-3
google-reverse-geocode.js
+
4
-
2
View file @
7fe885dd
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
(){
...
...
This diff is collapsed.
Click to expand it.
package.js
+
1
-
1
View file @
7fe885dd
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
'
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help