Full examples:
- https://nowtoronto.com/api/search/event/all/get_search_results
- https://nowtoronto.com/api/search/event/all/get_categories
- https://nowtoronto.com/api/search/location/museums/get_map_search_results?tile=0,0,0
- https://nowtoronto.com/locations/horseshoe/event-json/bounds+43.64376764553957+-79.40918305671386+43.653921925294895+-79.38257554328612/search_date+20160520/page_size+5000
Base url: https://nowtoronto.com/api/search
page
search_value
search_date
: Format "YYYY-MM-DD".categories
: common-separated list of concatenated, format<cat>_<subcat>
or1_1234
.tile
: mapping tile. Formatx,y,z
, where "z" is zoom level, and "x" and "y" are tile designations at that zoom level.- Note:
0,0,0
is the only tile at the lowest zoom level (ie. world map), and so gets all results.
- Note:
One of these methods must be used as the final url part of an event or location endpoint (see below).
/get_categories
: Gets an array of numerical sets for all active categories from a given query. Each set is an array[x, y]
wherex
is the category id, andy
is the 4-digit sub-category id.- Example, "Guides & Special Issues" is category "1", so if a set for
[1, 1932]
is returned, then it means that the query is possible to further filter by the sub-category "1931", which happens to be "Luminato". So in the UI, the "Luminato" checkbox is active and selectable for further filtering. - Note that the
page
common param is ignored, and simply all category sets are returned.
- Example, "Guides & Special Issues" is category "1", so if a set for
/get_search_results
: This returns an array of results for the query, filtered/get_map_search_results
: A method specific to locations. Required atile
param (unknown format)