src/net/locationDatumUrlHelperMixin.js
/**
	 * Generate a URL for finding the available source IDs for a location or metadata filter.
	 * 
	 * @param {number} [locationId] a specific location ID to use; if not provided the `locationId`
     *                              property of this class will be used
	 * @param {Date} [startDate] a start date to limit the search to
     * @param {Date} [endDate] an end date to limit the search to
	 * @returns {string} the URL
	 */
Generate a URL for finding the available source IDs for a location or metadata filter.

@param {number} [locationId] a specific location ID to use; if not provided the `locationId`
property of this class will be used
@param {Date} [startDate] a start date to limit the search to
@param {Date} [endDate] an end date to limit the search to
@returns {string} the URL
Generate a URL for finding the available source IDs for a location or metadata filter . @param { number } [ locationId ] a specific location ID to use ; if not provided the ` locationId ` property of this class will be used @param { Date } [ startDate ] a start date to limit the search to @param { Date } [ endDate ] an end date to limit the search to @returns { string } the URL
availableSourcesUrl(locationId, startDate, endDate) {
		let result = this.baseUrl() + '/location/datum/sources?locationId='
            +(locationId || this.locationId);
        if ( startDate instanceof Date ) {
            result += '&start=' +encodeURIComponent(dateTimeUrlFormat(startDate));
        }
        if ( endDate instanceof Date ) {
            result += '&end=' +encodeURIComponent(dateTimeUrlFormat(endDate));
        }
		return result;
	}
availableSourcesUrl ( locationId , startDate , endDate ) { let result = this . baseUrl ( ) + '/location/datum/sources?locationId=' + ( locationId || this . locationId ) ; if ( startDate instanceof Date ) { result += '&start=' + encodeURIComponent ( dateTimeUrlFormat ( startDate ) ) ; } if ( endDate instanceof Date ) { result += '&end=' + encodeURIComponent ( dateTimeUrlFormat ( endDate ) ) ; } return result ; }
Generate a URL for finding the available source IDs for a location or metadata filter.
Generate a URL for finding the available source IDs for a location or metadata filter .