WildAid / o-fish-ios

iOS app for the Officer's Fishery Information Sharing Hub (O-FISH). The mobile app allows fisheries officers to document and share critical information gathered during a routine vessel inspection.
Apache License 2.0
33 stars 15 forks source link

Saving a boarding record adds MPA field if appropriate #452

Closed Sheeri closed 2 years ago

Sheeri commented 2 years ago

If the location of a boarding is inside the polygon of an MPA, the boarding record should add the field:

inspection.summary.MPA and the value should be saved as a string that matches the MPA.name from the MenuData collection. e.g. "Galapagos" or "Cocos Island Marine Preserve" are the 2 possible values right now.

Sheeri commented 2 years ago

What are the implications with the Realm schema, and the android app? will putting this in, break the android app?

Dmitriy-Holovnia commented 2 years ago

The MPA field is optional so it didn't break the android app.