class_docstr: Geocoder using the HERE Geocoding & Search v7 API.
  
  Documentation at:
      https://developer.here.com/documentation/geocoding-search-api/
  
  Terms of Service at:
      https://legal.here.com/en-gb/terms
  
  .. versionadded:: 2.2
code: def _parse_json(self, doc, exactly_one=True):
      resources = doc["items"]
      if not resources:
          return None
  
      def parse_resource(resource):
          """
          Parse each return object.
          """
          location = resource["title"]
          position = resource["position"]
  
          latitude, longitude = position["lat"], position["lng"]
  
          return Location(location, (latitude, longitude), resource)
  
      if exactly_one:
          return parse_resource(resources[0])
      else:
          return [parse_resource(resource) for resource in resources]
  
imports: import collections.abc
  import json
  import warnings
  from functools import partial
  from urllib.parse import urlencode
  from geopy.adapters import AdapterHTTPError
  from geopy.exc import ConfigurationError, GeocoderAuthenticationFailure, GeocoderInsufficientPrivileges, GeocoderQueryError, GeocoderRateLimited, GeocoderServiceError, GeocoderUnavailable
  from geopy.geocoders.base import DEFAULT_SENTINEL, ERROR_CODE_MAP, Geocoder
  from geopy.location import Location
  from geopy.util import join_filter, logger
label_desc: Use image node_id 4 for calling the HereV7 obj's underlying member method code with example usage: obj._parse_json(doc, exactly_one) and returns: None, Location, parse_resource, unknown