class_docstr: Nominatim geocoder for OpenStreetMap data.
  
  Documentation at:
      https://nominatim.org/release-docs/develop/api/Overview/
  
  .. attention::
     Using Nominatim with the default `user_agent` is strongly discouraged,
     as it violates Nominatim's Usage Policy
     https://operations.osmfoundation.org/policies/nominatim/
     and may possibly cause 403 and 429 HTTP errors. Please make sure
     to specify a custom `user_agent` with
     ``Nominatim(user_agent="my-application")`` or by
     overriding the default `user_agent`:
     ``geopy.geocoders.options.default_user_agent = "my-application"``.
     An exception will be thrown if a custom `user_agent` is not specified.
class_docstr_tok: ["Nominatim","geocoder","for","OpenStreetMap","data",".","Documentation","at",":","https",":","\/\/nominatim.org\/release-docs\/develop\/api\/Overview\/","..","attention",":",":","Using","Nominatim","with","the","default","`","user_agent","`","is","strongly","discouraged",",","as","it","violates","Nominatim","'s","Usage","Policy","https",":","\/\/operations.osmfoundation.org\/policies\/nominatim\/","and","may","possibly","cause","403","and","429","HTTP","errors",".","Please","make","sure","to","specify","a","custom","`","user_agent","`","with","``","Nominatim","(","user_agent=","''","my-application","''",")","``","or","by","overriding","the","default","`","user_agent","`",":","``","geopy.geocoders.options.default_user_agent","=","``","my-application","''","``",".","An","exception","will","be","thrown","if","a","custom","`","user_agent","`","is","not","specified","."]
code: def _parse_code(self, place):
      # Parse each resource.
      latitude = place.get("lat", None)
      longitude = place.get("lon", None)
      placename = place.get("display_name", None)
      if latitude is not None and longitude is not None:
          latitude = float(latitude)
          longitude = float(longitude)
      return Location(placename, (latitude, longitude), place)
  
file_path: geopy/geopy/geocoders/nominatim.py
imports: import collections.abc
  from functools import partial
  from urllib.parse import urlencode
  from geopy.exc import ConfigurationError, GeocoderQueryError
  from geopy.geocoders.base import _DEFAULT_USER_AGENT, DEFAULT_SENTINEL, Geocoder
  from geopy.location import Location
  from geopy.util import logger
label_desc: Use image node_id 5 for calling the Nominatim obj's underlying member method code with example usage: obj._parse_code(place) and returns: Location