OGS Report
- create incident report from Open GeoSMS
- attach photos to existing report
...
Created by OpenGEO SMS/GeoThings
Usage Scenario
- Report incident via SMS
- Upload photos related to the report via HTTP
OGS Report is hooked to the ushahidi_action.message_sms_add event, so it should be
able to work with any SMS provider plugin. Currently only tested with Fronline SMS plugin.
Open GeoSMS format
the following fields are required in the body of the Open GeoSMS. fields are seperated by '\n'.
...
Example
0 http://foo.com/?q=12.34,56,78&GeoSMS
1 my title
2 my desc
3
4 6,7
5
Note the empty lines for server generated date & location name
API
- ogsreport/ expects HTTP mutipart/formdata
- POST
- required fields:
- m: Open GeoSMS message as described above
- key: API key (can be found at settings page)
- optional fields:
- action
- unset or 'create': create new report
- 'attach': attach photos to existing report
- incident_photo[]: photo files
- person_first, person_last, person_email: personal info
- incident_news[]: news URLs
- incident_video[]: video URLs
...