class_docstr: Geocoder using the Mapbox API.
  
  Documentation at:
      https://www.mapbox.com/api-documentation/
class_docstr_tok: ["Geocoder","using","the","Mapbox","API",".","Documentation","at",":","https",":","\/\/www.mapbox.com\/api-documentation\/"]
docstr: Returns location, (latitude, longitude) from json feed.
docstr_tok: ["Returns","location",",","(","latitude",",","longitude",")","from","json","feed","."]
code: def _parse_json(self, json, exactly_one=True):
      """Returns location, (latitude, longitude) from json feed."""
      features = json["features"]
      if features == []:
          return None
  
      def parse_feature(feature):
          location = feature["place_name"]
          longitude = feature["geometry"]["coordinates"][0]
          latitude = feature["geometry"]["coordinates"][1]
          return Location(location, (latitude, longitude), feature)
  
      if exactly_one:
          return parse_feature(features[0])
      else:
          return [parse_feature(feature) for feature in features]
  
file_path: geopy/geopy/geocoders/mapbox.py
imports: from functools import partial
  from urllib.parse import quote, urlencode
  from geopy.geocoders.base import DEFAULT_SENTINEL, Geocoder
  from geopy.location import Location
  from geopy.point import Point
  from geopy.util import logger
label_desc: Use image node_id 2 for calling the MapBox obj's underlying member method code with example usage: obj._parse_json(json, exactly_one) and returns: None, Location, parse_feature, unknown