TriReg.com Event Search API
This returns event search results similar to the event calendar in JSON format.
Requests should be GET requests directed to http://www.TriReg.com/api/search.
All parameters are passed via query string and are optional. Parameter names are case-sensitive. Results are limited to the first 100 matches and ordered chronologically ascending.
||A string of characters to search for in the event name, i.e. "Gloucester"
A region to restrict the search to. Legal values for this are the set of choices in the "Event Location" drop down box on the event search page above the first set of dashes, i.e. "New England" is valid but "American Samoa" is not.
||A comma-separated list of two-character state abbreviations to restrict the search to, i.e. "ME,NH,VT"
||A base location for the search. If this is included, results will have a "distance" property that represents how far away each result is from the given point. Points should be specified in the format "lat|long".
||Restricts search results to those within distance miles of loc. If loc is not specified, this has no effect.
||A comma-separated list of event types to restrict the search to. Legal values for this are the set of choices in the "Event Type" drop down box on the event search page above the first set of dashes, i.e. "MTB Races" is valid but "BUMPS Hillclimb Series" is not.
||An exact USAC permit # to match, i.e. "2014-2735"
||The page of results to start with, counting by 100. i.e. a startpage of "2" will return the 200-300th results for that search, if they exist.
||Restricts search to results within a given calendar year (i.e. "2014"). If absent, results will include all future events.
The response is a JSON-formatted object with two properties, "ResultCount" and "MatchingEvents." We assume you can figure out what they are.