{"action":"created","issue":{"url":"https://api.github.com/repos/EricKrg/hikeR/issues/1","repository_url":"https://api.github.com/repos/EricKrg/hikeR","labels_url":"https://api.github.com/repos/EricKrg/hikeR/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/EricKrg/hikeR/issues/1/comments","events_url":"https://api.github.com/repos/EricKrg/hikeR/issues/1/events","html_url":"https://github.com/EricKrg/hikeR/issues/1","id":319009338,"node_id":"MDU6SXNzdWUzMTkwMDkzMzg=","number":1,"title":"Implement reachability with ors_isochrones ","user":{"login":"EricKrg","id":31648877,"node_id":"MDQ6VXNlcjMxNjQ4ODc3","avatar_url":"https://avatars1.githubusercontent.com/u/31648877?v=4","gravatar_id":"","url":"https://api.github.com/users/EricKrg","html_url":"https://github.com/EricKrg","followers_url":"https://api.github.com/users/EricKrg/followers","following_url":"https://api.github.com/users/EricKrg/following{/other_user}","gists_url":"https://api.github.com/users/EricKrg/gists{/gist_id}","starred_url":"https://api.github.com/users/EricKrg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EricKrg/subscriptions","organizations_url":"https://api.github.com/users/EricKrg/orgs","repos_url":"https://api.github.com/users/EricKrg/repos","events_url":"https://api.github.com/users/EricKrg/events{/privacy}","received_events_url":"https://api.github.com/users/EricKrg/received_events","type":"User","site_admin":false},"labels":[{"id":875055186,"node_id":"MDU6TGFiZWw4NzUwNTUxODY=","url":"https://api.github.com/repos/EricKrg/hikeR/labels/enhancement","name":"enhancement","color":"a2eeef","default":true},{"id":875055187,"node_id":"MDU6TGFiZWw4NzUwNTUxODc=","url":"https://api.github.com/repos/EricKrg/hikeR/labels/help%20wanted","name":"help wanted","color":"008672","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-30T19:37:46Z","updated_at":"2018-06-02T14:37:39Z","closed_at":"2018-06-02T14:37:39Z","author_association":"OWNER","body":"Something like :\r\n\r\n```r \r\n\r\n# mapping in server.R\r\n\r\nrequire(openrouteservice-r)\r\n\r\n# get reachability via clicking on a map \r\n\r\n#values$df from leaflet.extra input -> fetched from a observer\r\niso = reactiveValues(df = NULL)\r\n\r\n# make optional inputs range and time\r\niso$df = ors_isochrones(values$df, input$range, input$time) # parse it as raw geojson --> geojsonsf::geojson_sf(iso) to sf\r\n\r\n\r\n#display it via: \r\nobserve({\r\n  if(!is.null(iso$df)){ \r\n    leafletProxy(\"leafmap\", data = iso$df) %>% # update existing map \r\n      clearShapes() %>% addPolygons(color = \"Black\",\r\n                                     highlightOptions = highlightOptions(bringToFront = T,\r\n                                                                         stroke =T,\r\n                                                                         weight = 5,\r\n                                                                         color =  \"red\")) %>%\r\n      setView(lng = view[,1],lat = view[,2] , zoom = 12)\r\n  } else {\r\n    leafletProxy(\"leafmap\", data = c()) %>%\r\n      clearShapes()\r\n  }\r\n})\r\n#\r\n```"},"comment":{"url":"https://api.github.com/repos/EricKrg/hikeR/issues/comments/394092012","html_url":"https://github.com/EricKrg/hikeR/issues/1#issuecomment-394092012","issue_url":"https://api.github.com/repos/EricKrg/hikeR/issues/1","id":394092012,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NDA5MjAxMg==","user":{"login":"EricKrg","id":31648877,"node_id":"MDQ6VXNlcjMxNjQ4ODc3","avatar_url":"https://avatars1.githubusercontent.com/u/31648877?v=4","gravatar_id":"","url":"https://api.github.com/users/EricKrg","html_url":"https://github.com/EricKrg","followers_url":"https://api.github.com/users/EricKrg/followers","following_url":"https://api.github.com/users/EricKrg/following{/other_user}","gists_url":"https://api.github.com/users/EricKrg/gists{/gist_id}","starred_url":"https://api.github.com/users/EricKrg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EricKrg/subscriptions","organizations_url":"https://api.github.com/users/EricKrg/orgs","repos_url":"https://api.github.com/users/EricKrg/repos","events_url":"https://api.github.com/users/EricKrg/events{/privacy}","received_events_url":"https://api.github.com/users/EricKrg/received_events","type":"User","site_admin":false},"created_at":"2018-06-02T14:37:39Z","updated_at":"2018-06-02T14:37:39Z","author_association":"OWNER","body":"Closed, implemented reachability"}}
{"actor":{"display_login":"EricKrg"}}