{"action":"created","issue":{"url":"https://api.github.com/repos/openreferral/specification/issues/125","repository_url":"https://api.github.com/repos/openreferral/specification","labels_url":"https://api.github.com/repos/openreferral/specification/issues/125/labels{/name}","comments_url":"https://api.github.com/repos/openreferral/specification/issues/125/comments","events_url":"https://api.github.com/repos/openreferral/specification/issues/125/events","html_url":"https://github.com/openreferral/specification/issues/125","id":200381223,"number":125,"title":"Why do locations need to belong to an organization?","user":{"login":"timgdavies","id":342624,"avatar_url":"https://avatars.githubusercontent.com/u/342624?v=3","gravatar_id":"","url":"https://api.github.com/users/timgdavies","html_url":"https://github.com/timgdavies","followers_url":"https://api.github.com/users/timgdavies/followers","following_url":"https://api.github.com/users/timgdavies/following{/other_user}","gists_url":"https://api.github.com/users/timgdavies/gists{/gist_id}","starred_url":"https://api.github.com/users/timgdavies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timgdavies/subscriptions","organizations_url":"https://api.github.com/users/timgdavies/orgs","repos_url":"https://api.github.com/users/timgdavies/repos","events_url":"https://api.github.com/users/timgdavies/events{/privacy}","received_events_url":"https://api.github.com/users/timgdavies/received_events","type":"User","site_admin":false},"labels":[{"id":56348335,"url":"https://api.github.com/repos/openreferral/specification/labels/discussion","name":"discussion","color":"cc317c","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/openreferral/specification/milestones/3","html_url":"https://github.com/openreferral/specification/milestone/3","labels_url":"https://api.github.com/repos/openreferral/specification/milestones/3/labels","id":2060353,"number":3,"title":"1.1 Release","description":"An updated release of the HSDS specification incorporating bug fixes and enhancements. ","creator":{"login":"timgdavies","id":342624,"avatar_url":"https://avatars.githubusercontent.com/u/342624?v=3","gravatar_id":"","url":"https://api.github.com/users/timgdavies","html_url":"https://github.com/timgdavies","followers_url":"https://api.github.com/users/timgdavies/followers","following_url":"https://api.github.com/users/timgdavies/following{/other_user}","gists_url":"https://api.github.com/users/timgdavies/gists{/gist_id}","starred_url":"https://api.github.com/users/timgdavies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timgdavies/subscriptions","organizations_url":"https://api.github.com/users/timgdavies/orgs","repos_url":"https://api.github.com/users/timgdavies/repos","events_url":"https://api.github.com/users/timgdavies/events{/privacy}","received_events_url":"https://api.github.com/users/timgdavies/received_events","type":"User","site_admin":false},"open_issues":11,"closed_issues":0,"state":"open","created_at":"2016-10-10T19:32:35Z","updated_at":"2017-01-12T14:33:03Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2017-01-12T14:31:14Z","updated_at":"2017-01-14T01:46:49Z","closed_at":null,"body":"The current location table has a non-required ```organisation_id``` field defined as:\r\n\r\n> Each location must belong to a single organization. The identifier of the organization should be given here.\r\n\r\nHowever - it seems that many organisations could operate from the same location. And to identify all the services at a given identified location a user might want to retrieve services from different organisations.\r\n\r\nShould this field be dropped, or better defined to relate only to 'the lead organisation' for the location, or something that helps identify the organisation responsible for administering the location overall, without implying that duplicate 'location' entries should be created for other co-located organisations. "},"comment":{"url":"https://api.github.com/repos/openreferral/specification/issues/comments/272591885","html_url":"https://github.com/openreferral/specification/issues/125#issuecomment-272591885","issue_url":"https://api.github.com/repos/openreferral/specification/issues/125","id":272591885,"user":{"login":"monfresh","id":811150,"avatar_url":"https://avatars.githubusercontent.com/u/811150?v=3","gravatar_id":"","url":"https://api.github.com/users/monfresh","html_url":"https://github.com/monfresh","followers_url":"https://api.github.com/users/monfresh/followers","following_url":"https://api.github.com/users/monfresh/following{/other_user}","gists_url":"https://api.github.com/users/monfresh/gists{/gist_id}","starred_url":"https://api.github.com/users/monfresh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/monfresh/subscriptions","organizations_url":"https://api.github.com/users/monfresh/orgs","repos_url":"https://api.github.com/users/monfresh/repos","events_url":"https://api.github.com/users/monfresh/events{/privacy}","received_events_url":"https://api.github.com/users/monfresh/received_events","type":"User","site_admin":false},"created_at":"2017-01-14T01:46:49Z","updated_at":"2017-01-14T01:46:49Z","body":"I haven't been following all the updates here closely, but I'm glad this project is moving along. I can only speak about Ohana API, where a location must belong to an organization, hence the required `organization_id`. In Ohana, a Service does not have a direct relationship with an Organization. Services are provided at Locations, so you can look up a Service's Organization via its Location. An Organization has many Locations, which in turn have many Services. Ohana does not have `services_at_location`. If you want to know which services belong to a Location, you query the Location, and the API will return all of its services. For example: https://api.smc-connect.org/locations/senior-advocates-program\r\n\r\nIf you want to know which organizations and services operate out of, or near a specific address, you can use the search feature with the `location` and `radius` filters to determine how far out to expand the search. For example, here are the services within a 1-mile radius of `330 Twin Dolphin Drive, Suite 155. Redwood City, CA 94065`, sorted by proximity to the searched address.\r\n\r\nhttp://www.smc-connect.org/locations?utf8=%E2%9C%93&keyword=&location=330+Twin+Dolphin+Drive%2C+Suite+155.+Redwood+City%2C+CA+94065+&org_name=&radius=1\r\n\r\nYes, this returns more results than you might have wanted, but in the end, you still get what you were looking for at the top of the results.\r\n\r\nHere is the API documentation for more details: https://codeforamerica.github.io/ohana-api-docs/"}}
{"actor":{"display_login":"monfresh"}}