class_docstr: Geocoder using Photon geocoding service (data based on OpenStreetMap
  and service provided by Komoot on https://photon.komoot.io).
  
  Documentation at:
      https://github.com/komoot/photon
  
  Photon/Komoot geocoder aims to let you `search as you type with
  OpenStreetMap`. No API Key is needed by this platform.
  
  .. versionchanged:: 2.2
      Changed default domain from ``photon.komoot.de``
      to ``photon.komoot.io``.
class_docstr_tok: ["Geocoder","using","Photon","geocoding","service","(","data","based","on","OpenStreetMap","and","service","provided","by","Komoot","on","https",":","\/\/photon.komoot.io",")",".","Documentation","at",":","https",":","\/\/github.com\/komoot\/photon","Photon\/Komoot","geocoder","aims","to","let","you","`","search","as","you","type","with","OpenStreetMap","`",".","No","API","Key","is","needed","by","this","platform",".","..","versionchanged",":",":","2.2","Changed","default","domain","from","``","photon.komoot.de","``","to","``","photon.komoot.io","``","."]
docstr: Parse display name, latitude, and longitude from a JSON response.
docstr_tok: ["Parse","display","name",",","latitude",",","and","longitude","from","a","JSON","response","."]
code: def _parse_json(self, resources, exactly_one=True):
      """
      Parse display name, latitude, and longitude from a JSON response.
      """
      if not len(resources["features"]):  # pragma: no cover
          return None
      if exactly_one:
          return self._parse_resource(resources["features"][0])
      else:
          return [
              self._parse_resource(resource)
              for resource in resources["features"]
          ]
  
file_path: geopy/geopy/geocoders/photon.py
imports: import collections.abc
  from functools import partial
  from urllib.parse import urlencode
  from geopy.geocoders.base import DEFAULT_SENTINEL, Geocoder
  from geopy.location import Location
  from geopy.util import logger
label_desc: Use image node_id 4 for calling the Photon obj's underlying member method code with example usage: obj._parse_json(resources, exactly_one) and returns: None, self, unknown