Each tour has its own unique API object associated with it. If a web page contains one tour, there is one API object. In the diagram below, there is one instance of tour 50001 and two instances of tour 50002, and there are three unique API objects, one for each instance.
The API object lets you:
- Get information from the API by accessing the API object's properties
- Make requests to the API by calling the API object's methods.
- Handle callbacks from the API object when certain events occur
MapsAlive.getApi method to access the correct API object.