code: def geocode(address):
      
      geocoding = {'s': 'rsv3',
                   'key': key,
                   'city': '全国',
                   'address': address}
      res = requests.get(
          "http://restapi.amap.com/v3/geocode/geo", params=geocoding)
      if res.status_code == 200:
          json = res.json()
          status = json.get('status')
          count = json.get('count')
          if status == '1' and int(count) >= 1:
              geocodes = json.get('geocodes')[0]
              lng = float(geocodes.get('location').split(',')[0])
              lat = float(geocodes.get('location').split(',')[1])
              return [lng, lat]
          else:
              return None
      else:
          return None
docs: 利用百度geocoding服务解析地址获取位置坐标
      :param address:需要解析的地址
      :return: