Advertisement
Guest User

Untitled

a guest
Nov 20th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. getParkingsData() {
  2.     const that = this;
  3.  
  4.     return this.melApiService.parkingListSubscribe( function(parkingsData){
  5.       that.parkingsData = _.orderBy(parkingsData, ['fields.libelle']);
  6.  
  7.       // that.parkingsData.distance = that.getDistance(this.latitude, this.longitude, that.parkingsData[0].geometry.coordinates[1], that.parkingsData[0].geometry.coordinates[0]);
  8.       that.parkingsDataFiltered = that.parkingsData;
  9.  
  10.       that.parkingsDataFiltered.map(function(parking) {
  11.         console.log('latPark ' + parking.geometry.coordinates[1]);
  12.         console.log('longPark ' + parking.geometry.coordinates[0]);
  13.  
  14.         // parking.distance = that.getDistance(that.latitude, that.longitude, parking.geometry.coordinates[1], parking.geometry.coordinates[0]);
  15.       });
  16.       console.log(parkingsData);
  17.       that.getLastRefreshDate();
  18.     });    
  19.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement