_buildLocationResult = function (geocodeResponse, originalRequest) {
    var location,
        providedLocation,
        result;

    location = {
      method: METHOD_GEOCODE,
      place: null,
      latitude: null,
      longitude: null,
      confidence: null
    };

    if (originalRequest.location) {
      // reverse lookup
      result = geocodeResponse.address;
      providedLocation = originalRequest.location.split(',');

      location.place = result.Match_addr;
      location.latitude = geocodeResponse.location.y;
      location.longitude = geocodeResponse.location.x;
      location.confidence = ConfidenceCalculator.computeFromCoordinates(
          providedLocation[1], providedLocation[0]);
    } else {
      // forward lookup
      result = geocodeResponse.locations[0];

      location.place = originalRequest.text || result.name;
      location.latitude = result.feature.geometry.y;
      location.longitude = result.feature.geometry.x;
      location.confidence = ConfidenceCalculator.computeFromGeocode(result);
    }

    return location;
  };
  _getCoordinateLocation: function (latitude, longitude) {
    var confidence = ConfidenceCalculator.
            computeFromCoordinates(latitude, longitude);

    return {
      'place': null,
      'longitude': parseFloat(longitude),
      'latitude': parseFloat(latitude),
      'method': METHOD,
      'confidence': confidence
    };
  },
   function () {
   expect(ConfidenceCalculator.computeFromCoordinates(
     '39.7',
     '-105.2')
     ).to.equal(ConfidenceCalculator.LOW_CONFIDENCE);
 });
   function () {
   expect(ConfidenceCalculator.computeFromCoordinates(
     '39.7554',
     '-105.221')
     ).to.equal(ConfidenceCalculator.AVERAGE_CONFIDENCE);
 });
   function () {
   expect(ConfidenceCalculator.computeFromCoordinates(
     '39.755543',
     '-105.2210997')
     ).to.equal(ConfidenceCalculator.HIGH_CONFIDENCE);
 });
   function () {
   expect(ConfidenceCalculator.computeFromCoordinates(
     '39.755543',
     -105.2210997)
     ).to.equal(ConfidenceCalculator.NOT_COMPUTED);
 });