Commit b222c0b34feef0d715da8c375319e2ab8e01578e
1 parent
18d1a649b1
Exists in
master
and in
1 other branch
obtener posicion devolver en callback
Showing
1 changed file
with
3 additions
and
0 deletions
Show diff stats
src/js/service.js
... | ... | @@ -18,6 +18,9 @@ angular.module('focaSeguimiento') |
18 | 18 | console.info(nuevaPosicion); |
19 | 19 | return $http.post(API_ENDPOINT.URL + '/seguimiento', nuevaPosicion); |
20 | 20 | }); |
21 | + }, | |
22 | + obtenerPosicion: function(callback) { | |
23 | + cordovaGeolocationService.getCurrentPosition(callback); | |
21 | 24 | } |
22 | 25 | }; |
23 | 26 | } |