Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- getParkingsData() {
- const that = this;
- return this.melApiService.parkingListSubscribe( function(parkingsData){
- that.parkingsData = _.orderBy(parkingsData, ['fields.libelle']);
- // that.parkingsData.distance = that.getDistance(this.latitude, this.longitude, that.parkingsData[0].geometry.coordinates[1], that.parkingsData[0].geometry.coordinates[0]);
- that.parkingsDataFiltered = that.parkingsData;
- that.parkingsDataFiltered.map(function(parking) {
- console.log('latPark ' + parking.geometry.coordinates[1]);
- console.log('longPark ' + parking.geometry.coordinates[0]);
- // parking.distance = that.getDistance(that.latitude, that.longitude, parking.geometry.coordinates[1], parking.geometry.coordinates[0]);
- });
- console.log(parkingsData);
- that.getLastRefreshDate();
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement