Skip to content

Commit

Permalink
add locationbyid
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelknoch committed Mar 25, 2016
1 parent db637f1 commit a628f98
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/services/location.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,9 @@ export class LocationService {
return this.http.get('https://locator-app.com/api/v2/locations/nearby?long=9.169753789901733&lat=47.66868204997508&maxDistance=10000&limit=100000')
.map(res => res.json())
}

getLocation(id) {
return this.http.get('https://locator-app.com/api/v2/locations/' + id)
.map(res => res.json())
}
}

0 comments on commit a628f98

Please sign in to comment.