OGS Report
- create incident report from Open GeoSMS
- attach photos to existing report
Plugin page *(*This plugin is compatible with Ushahidi 2.1. A newer version to support Ushahidi 2.5 is in progress with plans to enable a cool feature to sync incident photos with Open GeoSMS.
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'.
- title
- description
- date
- empty string for server generated date
- category
- comma separated list of categories
- location name
- empty string for server generated location name
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
Currently only title, desc, lat, lng are used to identify a report.