"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.searchAutoCity = searchAutoCity;

var _jsonpConfig = _interopRequireDefault(require("./jsonpConfig"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

function searchAutoCity(keywords) {
  var url = 'https://restapi.amap.com/v3/assistant/inputtips';
  var options = {
    callback: "jsonp_".concat(new Date().getTime())
  };
  var params = Object.assign({}, {
    s: 'rsv3',
    key: 'e83f64300a2a55a33fa8e4ab9a46bca6',
    platform: 'JS',
    logversion: '2.0',
    csid: '5A098355-8164-41D5-A2DC-78E1471CCD28',
    appname: window.location.href,
    sdkversion: '1.4.15',
    keywords: keywords
  });
  return (0, _jsonpConfig["default"])(url, params, options);
}