Skip to content

Uncertainty REST API

tucotuco edited this page Oct 11, 2011 · 3 revisions

Uncertainty REST API

Background

This REST API makes georeference calculations based on locality types using the methods described in the MaNIS/HerpNet/ORNIS Georeferencing Guidelines. It's implemented using the GeoCalc Project and is deployed on the Google App Engine platform.

Constants

Constants for datum, coordinate source, coordinate system, and units are available here:

http://uncertainty.biogeomancer.appspot.com/calc/constants

Calculating uncertainty

Service endpoint: http://uncertainty.biogeomancer.appspot.com/calc

Example - "Calculate uncertainty for a locality type PNO with an extent of 3000 meters having coordinates 35.3733333,-119.0177777 originally in degrees minutes seconds"

GET /calc?type=pno&extent=3000&ll=35.3733333,-119.0177777&sys=dms (try it!)

Parameter Description Required
type The locality type (e.g., PNO)
extent The distance in meters from geographic center of named place to its furthest extent
ll The geographic coordinates as latitude then longitude separated by a comma
sys The original coordinate system of geographic coordinates (e.g., DMS)
datum The geodetic datum (e.g., WGS84)
cs The source of the geographic coordinates (e.g., gazetteer)

Example JSON response

{
  "point": {"latitude": 35.3733333, "longitude": -119.0177777},
  "radius": 3039.8366457945735
}