getPanoramas

Finds and returns all spheres, passes them to the optional callback function (if provided), and returns them.

Parameters:

  • callback (function): (OPTIONAL) A callback function to execute after finding the nearest sphere. It will be passed the following automatically:

    • response (array): An array of all spheres. Each sphere is an object with the following properties:

      • id (number): The sphere id

      • latitude (number): The latitude of the sphere

      • longitude (number): The longitude of the sphere

      • dateTimeAcquired (string | null): A string representing the date that the sphere imagery was captured

Returns: A promise that resolves to response (array): An array of all spheres.

Code Sample