The Map URL API
Assuming the map is hosted at http://map.cam.ac.uk, which is abbreviated to M below, URLs have the following structure. Note that in all cases where a query string follows a directory the separating '/' is optional (i.e. M/x/?q=s is exactly the same as M/x?q=s).
|M or M/||displays the home page of the University map||http://map.cam.ac.uk/|
displays the map homed in on the item called name. name is URL encoded text for any entity the map can locate, ignoring case and punctuation and including any synonymous forms (such as Road vs. Rd). In fact this is simply an neater abbreviation for 'M/q=name' (see below).
If you want to link to a map on the centrally hosted site, this is the best kind of URL to use. But consider embedding a map: see below.
Older names will still respond to searches providing a cross reference is included in the database (as it was in the older system), or the old name is present in the 'AKA' field.
|M/?ref=ref||displays the map homed in on the item(s) referenced ref. References are geographical information and refer to entrances, buildings and sites/colleges as indicated by the ref=... tag on the corresponding OpenStreetMap data. ref can also be a list of references separated by '|'. Where buildings or sites are selected the corresponding main entrances are also displayed.||
|M/?inst=inst||displays the map homed in on institution(s) identified by inst, the institution code, which is case insensitive, or a list of these separated by '|'.||
displays the map page with results of the search for the URL encoded string search. Multiple search strings may be given separated by '|'
'one=list' is optional and if given overrides the default behaviour (which is to display the single result) and instead to display it as a list of results comrpsing only a single entry.
If 'partial=partial' is given results returned by the search are interpreted as a partial search, that is in the same way as typing the first few letters of a word (the last word if more than one). If not present then a match is made only on whole words (including synonymous forms and ignoring case and punctuation, but in any order).
If filter is given, only results which match the filter are returned. filter is one or more of the following, separated by vertical bar, for example "filter=college|academic": college, academic, site, nonacademic, lecture, techno, street, nonuniversity.
Note that if the search yields only one result and the optional parameters are omitted, then the result is identical to the URL M:/name as above.
the equivalent of searching, except by bounding box rather than text string. Typically this is the URL derived by zooming in or out from an existing map. Content is filtered according to the zoom level, when provided, so that an overwhelming amount of information is not produced for low zoom. Note: no spaces after commas.
filter as above