Skip to content
duetosymmetry edited this page Jan 21, 2012 · 5 revisions

GET request to: http://leostein.scripts.mit.edu/StudyBeacon/query.py

There parameters are:

  • LatE6Min -- (Required) smallest (most southern) value of latitude for bounding box of query
  • LatE6Max -- (Required) largest (most northern) value of latitude for bbox
  • LonE6Min -- (Required) smallest (most western) value of longitude
  • LonE6Max -- (Required) largest (most eastern) value of longitude

All of the above are obviously in E6 form.

  • Course -- (Required) a string of courses to look up. Colon delimited list.

The returned result is a JSONArray of JSONObject with a bunch of fields (dictionary, i.e. "field":value). The Android JSON parser should be able to parse it.

Example:

http://leostein.scripts.mit.edu/StudyBeacon/query.py?Course=8.901:6.570&LatE6Min=42359700&LatE6Max=42360686&LonE6Min=-71093426&LonE6Max=-71091269

Response:

[{"Count": 2, "Expires": "2012-02-01 00:00:00", "Created": "2012-01-16 13:49:40", "LonE6": -71093425, "Telephone": "585-729-5898", "LatE6": 42360685, "Course": "8.901", "BeaconId": 1, "Details": "In the Solarium on the 6th floor", "Email": ""}, {"Count": 3, "Expires": "2012-02-01 00:00:00", "Created": "2012-01-16 13:51:29", "LonE6": -71091270, "Telephone": "585-729-5898", "LatE6": 42359702, "Course": "6.570", "BeaconId": 2, "Details": "In 4-231", "Email": ""}]

Clone this wiki locally