Accessing Object Properties...

Posted 1 year ago by devonian

Hi all, I'm trying to implement geocoding into my application. Having a hard time accessing the properties of the object. Please see below:

Package ->

My code ->

Route::get('geocode', function(){
    $geo = app('geocoder')->geocode('London, UK')->get();

Problem -> Cannot access private property Geocoder\Model\Coordinates::$latitude

Feel silly asking this, but how the hell do I access the latitude/longitude??

Please sign in or create an account to participate in this conversation.