{"action":"opened","issue":{"url":"https://api.github.com/repos/dereuromark/cakephp-geo/issues/28","repository_url":"https://api.github.com/repos/dereuromark/cakephp-geo","labels_url":"https://api.github.com/repos/dereuromark/cakephp-geo/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/dereuromark/cakephp-geo/issues/28/comments","events_url":"https://api.github.com/repos/dereuromark/cakephp-geo/issues/28/events","html_url":"https://github.com/dereuromark/cakephp-geo/issues/28","id":249960948,"number":28,"title":"Error in Documentation of Gecodoer Library?","user":{"login":"cewi","id":1643900,"avatar_url":"https://avatars0.githubusercontent.com/u/1643900?v=4","gravatar_id":"","url":"https://api.github.com/users/cewi","html_url":"https://github.com/cewi","followers_url":"https://api.github.com/users/cewi/followers","following_url":"https://api.github.com/users/cewi/following{/other_user}","gists_url":"https://api.github.com/users/cewi/gists{/gist_id}","starred_url":"https://api.github.com/users/cewi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cewi/subscriptions","organizations_url":"https://api.github.com/users/cewi/orgs","repos_url":"https://api.github.com/users/cewi/repos","events_url":"https://api.github.com/users/cewi/events{/privacy}","received_events_url":"https://api.github.com/users/cewi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-14T08:13:54Z","updated_at":"2017-08-14T08:13:54Z","closed_at":null,"body":"Hi,\r\n\r\nI set up Geocoder library as described here:\r\nhttps://github.com/dereuromark/cakephp-geo/blob/master/docs/Geocoder/Geocoder.md \r\n\r\nMy code in app.php:\r\n```\r\n    'Geocoder' => [\r\n        'provider' => '\\Geocoder\\Provider\\OpenStreetMap',\r\n    ],\r\n```\r\nMy code in a controller:\r\n```\r\n...\r\n$this->Geocoder = new \\Geo\\Geocoder\\Geocoder();\r\n$this->Geocoder->setOptions([\r\n                'allowInconclusive' => true,\r\n                'minAccuracy' => Geocoder::TYPE_POSTAL]);\r\n...\r\n```\r\n\r\nThis throws an Error:\r\n> Call to undefined method Geo\\Geocoder\\Geocoder::setOptions() \r\n\r\nLooking at the code in \r\nhttps://github.com/dereuromark/cakephp-geo/blob/master/src/Geocoder/Geocoder.php, there is no setOptions() method.\r\n\r\nPassing the options instead to the constructor works as expected. Is there an error in the docs or are there mistakes in my setup?"}}
{"actor":{"display_login":"cewi"}}