Please refer to MazeMap Customer Success or Sales channels for newer documentation. MazeMap Contact Page
This document describes the basic use of the MazeMap URL API.
https://use.mazemap.com/?v=1
vdefines the version, in this case1.
The URL API supports versioning using the v parameter, however it is not necessary to specify as the API assumes the latest version by default. In the following examples we omit this parameter.
---
To start MazeMap with a specific campus in view:
https://use.mazemap.com/?campusid=1
campusiddefines the campus in view, in this case1.
To specify other parameters you must also specify the campus to provide proper context.
Note: 0 is a special value that tells the application to start with no particular campus by default.
As of 2015-06-18, if you specify a POI that is globally unique, the campusid parameter can be omitted. Note however that POIs defined using identifier are not globally unique, and therefore needs either the campusid or campuses parameter for proper context. One of these must be provided.
---
For some use-cases, you want to launch the app with only a specifc campus available fro browsing. This is done with the campuses parameter. This is a pre-configured tag that must be configured by the MazeMap team. Contact MazeMap to do this.
https://use.mazemap.com/?campuses=ntnu
campusesdefines which group of campuses to show in the list using the configured tag string.
---
There are 3 different types of POIs:
sharepoitypedefines a sharing point. Use to share a single point.starttypedefines a starting point. Use as the start of a path.desttypedefines a destination point. Use as the destination of a path or as a single destination point.
They can be specified in 3 different ways:
poidefines a MazeMap POI IDpointdefines a generic point by longitude, latitude and flooridentifierdefines a local ID
This defines the format expected by the parameter related to the type of POI.
sharepoiforsharepoitypestartforstarttypedestfordesttype
The syntax is as follows:
<sharepoi,start,dest>type=poi&<sharepoi,start,dest>=<MazeMap POI ID>
<sharepoi,start,dest>type=point&<sharepoi,start,dest>=<longitude>,<latitude>,<floor>
<sharepoi,start,dest>type=identifier&<sharepoi,start,dest>=<Customer defined ID>
To start MazeMap with a specific POI in view:
https://use.mazemap.com/?campusid=1&desttype=poi&dest=593
desttypedefines the format expected by thedestparameter. In this case a POI ID.destdefines the specific POI ID.
To start MazeMap with a generic point in view:
https://use.mazemap.com/?campusid=1&desttype=point&dest=10.4026794,63.4183615,0
https://use.mazemap.com/?campusid=1&desttype=point&dest=10.4035833,63.4178412,3
desttypedefines the format expected by thedestparameter. In this case a generic point.destdefines the geographical point as a comma-separated listdest=longitude,latitude,z-indexwherez-indexis used to specify the floor, if the point lies indoors. The value ofz-indexusually matches the floor, but this might vary from building to building. If outdoors, thez-indexparameter should be 0, or it can simply be dropped.
Every POI/room has an internal reference identifier. To link to a specific POI identifier, in view:
https://use.mazemap.com/?campusid=18&desttype=identifier&dest=810-2425
desttypedefines the format expected by thedestparameter. In this case an identifier.destdefines the lokal reference ID of the POI. In this case room 810-2425 at NTNU Dragvoll.
Some organizations have IDs to buildings/floors from an internal system, such as Lydia or IBM Tririga, etc. Such IDs could be synchronized with MazeMap and used in links in the following way:
- A specific "referenceprovider" must be created in MazeMap
- The reference ID is then used to identify the specific resource
Example link to a building with a Lydia reference ID set up for NTNU customer:
- The building reference id is
301
https://use.mazemap.com/?campuses=ntnu&campusid=1&referenceprovider=ntnulydia&sharepoitype=building&sharepoi=301
Example link to a floor with a Lydia reference ID set up for NTNU customer:
The building reference id is 301 and the floor id is k, resulting in the reference 301k
https://use.mazemap.com/?campuses=ntnu&campusid=1&referenceprovider=ntnulydia&sharepoitype=floor&sharepoi=301k
---
To start MazeMap with a predefined building in view:
https://use.mazemap.com/?v=1&sharepoitype=bld&sharepoi=57&campuses=ntnu
sharepoitypedefines the format expected by thesharepoiparameter. In this case we specify a 'bld' typesharepoidefines the ID of the building. This is an internal MazeMap ID, and might not be persistent forever.
---
To start MazeMap with a predefined path:
https://use.mazemap.com/?campusid=1&starttype=point&start=10.4029047,63.4186015,0&desttype=poi&dest=35994
starttypedefines the format expected by thestartparameter. In this case a geographical point outside.startdefines the geographical point in a comma-separated list.desttypeIn the example, a POI is used as destination type.destIn the example the POI ID for MazeMap office is used as destination.
---
To override the default zoom:
https://use.mazemap.com/?campusid=1&zoom=17
zoomdefines a specific zoom value. It can have a value between 1-22.
---
To override the default north rotated map:
https://use.mazemap.com/?campusid=1&zoom=17&bearing=45
bearingdefines a specific rotation value in degrees from north.
---
POI categories are generic types of POIs.
https://use.mazemap.com/?campusid=1&typepois=9,27
typepoisspecifies a comma-separated list with IDs.
4PC7Study area9WC27Bus stop28Parking114Power outlets
POI type category IDs are configured per-campus. Contact MazeMap for a list of your category IDs, or instructions on how to set-up these yourself.
---
To override the user's language settings:
https://use.mazemap.com/?campusid=1&lang=nb
langdefines which language to use.enEnglishnbNorsk Bokmål
---
To start MazeMap with a predefined search string:
https://use.mazemap.com/?campusid=1&search=Your string
searchdefines the string.
---
To override the default floor level:
https://use.mazemap.com/?campusid=1&zlevel=5
zleveldefines which floor the view is set to. This might be different from building to building, i.e.zlevel=2might not always mean the 2nd floor.
---
https://use.mazemap.com/?wheelzoom=false
wheelzoomcan have the following values:true(default)false
---
Will hide the share button from the header
https://use.mazemap.com/?sharemode=false
For integration with native apps
https://use.mazemap.com/?sharemode=url_scheme
See the spesific document that describes this functionality with example iOS / Android code
Native URL Scheme Implementation Documentation
vspecifies the url version number.campusidspecifies the campus ID.campuseslimits the list of campuses with a pre-configured tag string.sharepoitypespecifies what formatsharepoishould expect.sharepoispecifies a POI either by poi, identifier or point.starttypespecifies what formatstartshould expect.startspecifies a POI either by poi, identifier or point.desttypespecifies what formatdestshould expect.destspecifies a POI either by poi, identifier or point.zoomspecifies a custom zoom level (1-22).typepoisspecifies a comma-separated list with IDs of generic POIs (WC, Bus stops, etc.)langoverrides user's language settings.searchstart application with a predefined search string.zleveloverride default floor level.wheelzoomspecifies whether zooming by scrolling is enabledsharemodespecifies the behaviour of the share map button in the app headerpositioningif set to 'disabled', allows for disabling the "find my location" functionality. If set totrue, it will auto-start the positioning.bearingspecifies a view rotation in degrees from north.