OpenCaching.com/api/local_rules

GET a Local Rules by rule_id

Returns a single Local Rules for the specified rule_id.  For example http://www.opencaching.com/api/local_rules/12345.

This request can use the parameters specified below.

Defaults for parameters

areas = true  - Will return the points used to determine the area

GET list of Local Rules

Returns all of the Local Rules that match the parameters.  The request must include the points parameter.  For example http://www.opencaching.com/api/local_rules?points=12.345,12.345.

This request can use the parameters specified below.

Defaults for parameters

areas = false  - This cannot be changed. The amount of data is too large.

Parameters

rule_id

Returns the rule id that matches.

points=lat,lon,lat,lon...

Returns a list of local rules that deal with the specified points. It is handled as an OR between the points instead of AND. The local rule only has to contain 1 of the points to be returned.

areas=true/false

This determines if the points that make up the polygon for the rule are returned. This cannot be changed for a list of local rules because it would be too much data to return.