{"action":"created","issue":{"url":"https://api.github.com/repos/florianreinhart/Geodesy/issues/2","repository_url":"https://api.github.com/repos/florianreinhart/Geodesy","labels_url":"https://api.github.com/repos/florianreinhart/Geodesy/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/florianreinhart/Geodesy/issues/2/comments","events_url":"https://api.github.com/repos/florianreinhart/Geodesy/issues/2/events","html_url":"https://github.com/florianreinhart/Geodesy/issues/2","id":366405532,"node_id":"MDU6SXNzdWUzNjY0MDU1MzI=","number":2,"title":"Calculation of perpendicular point of a line (p1, p2) and a point (p3) near the line","user":{"login":"phranck","id":871198,"node_id":"MDQ6VXNlcjg3MTE5OA==","avatar_url":"https://avatars1.githubusercontent.com/u/871198?v=4","gravatar_id":"","url":"https://api.github.com/users/phranck","html_url":"https://github.com/phranck","followers_url":"https://api.github.com/users/phranck/followers","following_url":"https://api.github.com/users/phranck/following{/other_user}","gists_url":"https://api.github.com/users/phranck/gists{/gist_id}","starred_url":"https://api.github.com/users/phranck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phranck/subscriptions","organizations_url":"https://api.github.com/users/phranck/orgs","repos_url":"https://api.github.com/users/phranck/repos","events_url":"https://api.github.com/users/phranck/events{/privacy}","received_events_url":"https://api.github.com/users/phranck/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-03T15:46:18Z","updated_at":"2018-10-04T08:40:16Z","closed_at":null,"author_association":"NONE","body":"Hey @florianreinhart!\r\n\r\nFirst: Thank you very much for this great collection of useful geodesy functions!\r\n\r\nThis isn't a real issue but more a question. I'm currently struggling on calculating the perpendicular point of a line (p1, p2) and a point (p3) near the line.\r\n\r\n_Background:_ We are using `MKPolyLine` to draw lines on the map. The user should be able to tap (p3) on (or near to) a line segment (p1, p2). Now I need the closest point in the line (the perpendicular point) to the touch point, to show a popup with detailed informations at this line point. It should look like this:\r\n\r\n![screen shot 2018-10-03 at 17 42 24](https://user-images.githubusercontent.com/871198/46422069-d07e5580-c733-11e8-82c3-e3c6203c88e4.png)\r\n\r\nNow I'm asking myself if this is possible with your functions? Maybe I'm missing something, unfortunately I don't find a solution...\r\n\r\n_Question:_ Is this calculation possible with your library or is an entire new function needed to get the result?\r\n\r\nThanks in advance!"},"comment":{"url":"https://api.github.com/repos/florianreinhart/Geodesy/issues/comments/426934134","html_url":"https://github.com/florianreinhart/Geodesy/issues/2#issuecomment-426934134","issue_url":"https://api.github.com/repos/florianreinhart/Geodesy/issues/2","id":426934134,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNjkzNDEzNA==","user":{"login":"phranck","id":871198,"node_id":"MDQ6VXNlcjg3MTE5OA==","avatar_url":"https://avatars1.githubusercontent.com/u/871198?v=4","gravatar_id":"","url":"https://api.github.com/users/phranck","html_url":"https://github.com/phranck","followers_url":"https://api.github.com/users/phranck/followers","following_url":"https://api.github.com/users/phranck/following{/other_user}","gists_url":"https://api.github.com/users/phranck/gists{/gist_id}","starred_url":"https://api.github.com/users/phranck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phranck/subscriptions","organizations_url":"https://api.github.com/users/phranck/orgs","repos_url":"https://api.github.com/users/phranck/repos","events_url":"https://api.github.com/users/phranck/events{/privacy}","received_events_url":"https://api.github.com/users/phranck/received_events","type":"User","site_admin":false},"created_at":"2018-10-04T08:40:16Z","updated_at":"2018-10-04T08:40:16Z","author_association":"NONE","body":"@florianreinhart Yeah, that was my initial thought, too. However, this is more an approximation method than a direct calculation. (-;"}}
{"actor":{"display_login":"phranck"}}