0

This is what the array looks like:

[GeoPlace {
  city: [Getter],
  province_state: [Getter],
  country: {
    long_name: 'Greece',
    short_name: 'GR'
  },
  formatted_address: 'Greece',
  location: {
    lat: 39.074208,
    lng: 21.824312
  },
  location_type: 'APPROXIMATE',
  location_bounds: {
    northeast: [Object],
    southwest: [Object]
  }
}] 

This is what my code looks like:

if(!_.isNil(res) && _.isNil(err)) {
  console.log(res);
}  

I want to be able to get just the location showing in the console.log.

Nick Parsons
  • 45,728
  • 6
  • 46
  • 64
Coder1234
  • 389
  • 1
  • 3
  • 9

0 Answers0