src/geo/geocoder/tomtom-geocoder.js
function _formatResponse (rawTomTomResponse) {
  if (!rawTomTomResponse.results.length) {
    return [];
  }

  const bestCandidate = rawTomTomResponse.results[0];
  return [{
    boundingbox: _getBoundingBox(bestCandidate),
    center: _getCenter(bestCandidate),
    type: _getType(bestCandidate)
  }];
}
function _formatResponse (rawTomTomResponse) {
  if (!rawTomTomResponse.results.length) {
    return [];
  }

  const bestCandidate = rawTomTomResponse.results[0];
  return [{
    boundingbox: _getBoundingBox(bestCandidate),
    center: _getCenter(bestCandidate),
    type: _getType(bestCandidate)
  }];
}
function _formatResponse ( rawTomTomResponse ) { if ( ! rawTomTomResponse . results . length ) { return [ ] ; } const bestCandidate = rawTomTomResponse . results [ 0 ] ; return [ { boundingbox : _getBoundingBox ( bestCandidate ) , center : _getCenter ( bestCandidate ) , type : _getType ( bestCandidate ) } ] ; }
Transform a tomtom geocoder response into an object more friendly for our search widget.
@param {object} rawTomTomResponse - The raw tomtom geocoding response, {@see https://developer.tomtom.com/search-api/search-api-documentation-geocoding/geocode}
Transform a tomtom geocoder response into an object more friendly for our search widget .