Call 2 objects from API on button click ionic2
<p>I got an API link where i want to get 2 objects from but it's my first time in Ionic2 so I don't know how I can create the function to call them.</p>

<p>I have my homepage with my button</p>

<pre><code>&lt;ion-content &gt;

    &lt;button ion-button (click)="getObjects()"&gt;&lt;ion-icon name="get"&gt;&lt;/ion-icon&gt;Get&lt;/button&gt;

&lt;/ion-content&gt;
</code></pre>

<p>And in my home.ts file I've tried something like this:</p>

<pre><code>import { Component } from '@angular/core';
import {Http} from '@angular/http';
import 'rxjs/add/operator/map';
import { NavController } from 'ionic-angular';

@Component({
  selector: 'page-home',
  templateUrl: 'home.html'
})
export class HomePage {
static get parameters() {
        return [[Http]];
    }
  constructor(public http:Http) {

  }
  getObjects(objectNames)
  var url = 'MYurl';
  var response = this.http.get(url).map(res =&gt; res.json());
  return response;

}
</code></pre>

<p>The objects I want to call are like this:</p>

<pre><code>{"lat","long","deviceID","value","id"}
</code></pre>

<p>Someone who can help to create the right function?</p>