class_docstr: Geocoder using the Baidu Maps v2 API.
  
  Documentation at:
      http://lbsyun.baidu.com/index.php?title=webapi/guide/webservice-geocoding
  
  .. attention::
      Newly registered API keys will not work with v2 API,
      use :class:`.BaiduV3` instead.
class_docstr_tok: ["Geocoder","using","the","Baidu","Maps","v2","API",".","Documentation","at",":","http",":","\/\/lbsyun.baidu.com\/index.php","?","title=webapi\/guide\/webservice-geocoding","..","attention",":",":","Newly","registered","API","keys","will","not","work","with","v2","API",",","use",":","class",":","`",".BaiduV3","`","instead","."]
docstr: Parses a location from a single-result reverse API call.
docstr_tok: ["Parses","a","location","from","a","single-result","reverse","API","call","."]
code: def _parse_reverse_json(self, page, exactly_one=True):
      """
      Parses a location from a single-result reverse API call.
      """
      place = page.get("result")
  
      if not place:
          self._check_status(page.get("status"))
          return None
  
      location = place.get("formatted_address").encode("utf-8")
      latitude = place["location"]["lat"]
      longitude = place["location"]["lng"]
  
      location = Location(location, (latitude, longitude), place)
      if exactly_one:
          return location
      else:
          return [location]
  
file_path: geopy/geopy/geocoders/baidu.py
imports: import hashlib
  from functools import partial
  from urllib.parse import quote_plus, urlencode
  from geopy.exc import GeocoderAuthenticationFailure, GeocoderQueryError, GeocoderQuotaExceeded, GeocoderServiceError
  from geopy.geocoders.base import DEFAULT_SENTINEL, Geocoder
  from geopy.location import Location
  from geopy.util import logger
label_desc: Use image node_id 5 for calling the Baidu obj's underlying member method code with example usage: obj._parse_reverse_json(page, exactly_one) and returns: None, location, list