{"action":"created","issue":{"url":"https://api.github.com/repos/fossasia/susi_android/issues/372","repository_url":"https://api.github.com/repos/fossasia/susi_android","labels_url":"https://api.github.com/repos/fossasia/susi_android/issues/372/labels{/name}","comments_url":"https://api.github.com/repos/fossasia/susi_android/issues/372/comments","events_url":"https://api.github.com/repos/fossasia/susi_android/issues/372/events","html_url":"https://github.com/fossasia/susi_android/issues/372","id":192378856,"number":372,"title":"add geolocation to susi api call","user":{"login":"Orbiter","id":238730,"avatar_url":"https://avatars.githubusercontent.com/u/238730?v=3","gravatar_id":"","url":"https://api.github.com/users/Orbiter","html_url":"https://github.com/Orbiter","followers_url":"https://api.github.com/users/Orbiter/followers","following_url":"https://api.github.com/users/Orbiter/following{/other_user}","gists_url":"https://api.github.com/users/Orbiter/gists{/gist_id}","starred_url":"https://api.github.com/users/Orbiter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Orbiter/subscriptions","organizations_url":"https://api.github.com/users/Orbiter/orgs","repos_url":"https://api.github.com/users/Orbiter/repos","events_url":"https://api.github.com/users/Orbiter/events{/privacy}","received_events_url":"https://api.github.com/users/Orbiter/received_events","type":"User","site_admin":false},"labels":[{"id":446682181,"url":"https://api.github.com/repos/fossasia/susi_android/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":{"login":"chiragw15","id":16978820,"avatar_url":"https://avatars.githubusercontent.com/u/16978820?v=3","gravatar_id":"","url":"https://api.github.com/users/chiragw15","html_url":"https://github.com/chiragw15","followers_url":"https://api.github.com/users/chiragw15/followers","following_url":"https://api.github.com/users/chiragw15/following{/other_user}","gists_url":"https://api.github.com/users/chiragw15/gists{/gist_id}","starred_url":"https://api.github.com/users/chiragw15/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chiragw15/subscriptions","organizations_url":"https://api.github.com/users/chiragw15/orgs","repos_url":"https://api.github.com/users/chiragw15/repos","events_url":"https://api.github.com/users/chiragw15/events{/privacy}","received_events_url":"https://api.github.com/users/chiragw15/received_events","type":"User","site_admin":false},"assignees":[{"login":"chiragw15","id":16978820,"avatar_url":"https://avatars.githubusercontent.com/u/16978820?v=3","gravatar_id":"","url":"https://api.github.com/users/chiragw15","html_url":"https://github.com/chiragw15","followers_url":"https://api.github.com/users/chiragw15/followers","following_url":"https://api.github.com/users/chiragw15/following{/other_user}","gists_url":"https://api.github.com/users/chiragw15/gists{/gist_id}","starred_url":"https://api.github.com/users/chiragw15/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chiragw15/subscriptions","organizations_url":"https://api.github.com/users/chiragw15/orgs","repos_url":"https://api.github.com/users/chiragw15/repos","events_url":"https://api.github.com/users/chiragw15/events{/privacy}","received_events_url":"https://api.github.com/users/chiragw15/received_events","type":"User","site_admin":false}],"milestone":null,"comments":6,"created_at":"2016-11-29T19:39:46Z","updated_at":"2016-12-06T18:41:59Z","closed_at":null,"body":"Currently the ```http://api.asksusi.com/susi/chat.json``` api is called without a location information. \r\n\r\n**Expected Behaviour**\r\n\r\nFor location-based services, we need the local geolocation of the android device. If the user has no GPS switched on, you can also use the fuzzy location that can be obtained in android using a network provider. The details are explained in the first answer of http://stackoverflow.com/questions/6181704/good-way-of-getting-the-users-location-in-android .. please use that method.\r\n\r\nThat longitude and latitude parameter must be appended to the susi api call. Currently a call is like:\r\n```\r\nhttp://api.asksusi.com/susi/chat.json?timezoneOffset=-60&q=where+am+I\r\n```\r\nThis must become a call like:\r\n```\r\nhttp://api.asksusi.com/susi/chat.json?timezoneOffset=-60&longitude=8.11&latitude=55.8&q=where+am+I\r\n```\r\n\r\n**Steps to reproduce it**\r\n\r\nUse the android device to ask where you are. An example output will be provided as the solution evolves."},"comment":{"url":"https://api.github.com/repos/fossasia/susi_android/issues/comments/265234678","html_url":"https://github.com/fossasia/susi_android/issues/372#issuecomment-265234678","issue_url":"https://api.github.com/repos/fossasia/susi_android/issues/372","id":265234678,"user":{"login":"chiragw15","id":16978820,"avatar_url":"https://avatars.githubusercontent.com/u/16978820?v=3","gravatar_id":"","url":"https://api.github.com/users/chiragw15","html_url":"https://github.com/chiragw15","followers_url":"https://api.github.com/users/chiragw15/followers","following_url":"https://api.github.com/users/chiragw15/following{/other_user}","gists_url":"https://api.github.com/users/chiragw15/gists{/gist_id}","starred_url":"https://api.github.com/users/chiragw15/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chiragw15/subscriptions","organizations_url":"https://api.github.com/users/chiragw15/orgs","repos_url":"https://api.github.com/users/chiragw15/repos","events_url":"https://api.github.com/users/chiragw15/events{/privacy}","received_events_url":"https://api.github.com/users/chiragw15/received_events","type":"User","site_admin":false},"created_at":"2016-12-06T18:41:59Z","updated_at":"2016-12-06T18:41:59Z","body":"@Orbiter sure :+1: Thanks :) \r\n"}}
{"actor":{"display_login":"chiragw15"}}