{"action":"opened","issue":{"url":"https://api.github.com/repos/valnet/valuenetwork/issues/436","labels_url":"https://api.github.com/repos/valnet/valuenetwork/issues/436/labels{/name}","comments_url":"https://api.github.com/repos/valnet/valuenetwork/issues/436/comments","events_url":"https://api.github.com/repos/valnet/valuenetwork/issues/436/events","html_url":"https://github.com/valnet/valuenetwork/issues/436","id":101245931,"number":436,"title":"Map agent locations","user":{"login":"bhaugen","id":117439,"avatar_url":"https://avatars.githubusercontent.com/u/117439?v=3","gravatar_id":"","url":"https://api.github.com/users/bhaugen","html_url":"https://github.com/bhaugen","followers_url":"https://api.github.com/users/bhaugen/followers","following_url":"https://api.github.com/users/bhaugen/following{/other_user}","gists_url":"https://api.github.com/users/bhaugen/gists{/gist_id}","starred_url":"https://api.github.com/users/bhaugen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhaugen/subscriptions","organizations_url":"https://api.github.com/users/bhaugen/orgs","repos_url":"https://api.github.com/users/bhaugen/repos","events_url":"https://api.github.com/users/bhaugen/events{/privacy}","received_events_url":"https://api.github.com/users/bhaugen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/valnet/valuenetwork/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/valnet/valuenetwork/labels/priority","name":"priority","color":"0b02e1"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-16T09:25:41Z","updated_at":"2015-08-16T09:25:41Z","closed_at":null,"body":"Now that we got maps working again, let's put agents on the map.\r\n\r\nWe've created a bit of a mess here because we got Locations that go on the map, but they are connected only to resources. Agents have an address field, that is not mapped. And they also have a primary_location field that is a Location, and would go on the map, but it's not on AgentCreateForm.\r\n\r\nSo we could either put the address field on the map (which would require geocoding when entered), or put the primary_location on the AgentCreateForm.\r\n\r\nProblem with primary_location is that it's an extra set of steps (to create a location, and then add it to the agent). \r\n\r\nMaybe better? when they enter the address, we could geocode it, create a Location, and make that the primary_location.\r\n\r\nMight want to rethink Locations altogether..."}}