Skip to content

Commit

Permalink
add ID field and separate lat and lng
Browse files Browse the repository at this point in the history
  • Loading branch information
tzits authored Jan 6, 2023
1 parent d13c0a0 commit ddad832
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions models/BirdSighting.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
export class BirdSighting {
constructor(species, count, location, time, date, imageUrl) {
constructor(species, count, location, time, date, imageUrl, id) {
this.species = species,
this.count = count,
this.imageUrl = imageUrl,
this.location = location,
this.lat = location.lat,
this.lng = location.lng,
this.time = time,
this.date = date
this.id = id
}
}
}

0 comments on commit ddad832

Please sign in to comment.