{"action":"closed","issue":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/4485","repository_url":"https://api.github.com/repos/mapbox/mapbox-gl-native","labels_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/4485/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/4485/comments","events_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/4485/events","html_url":"https://github.com/mapbox/mapbox-gl-native/issues/4485","id":143888732,"number":4485,"title":"Add category methods on NSValue for geometry types","user":{"login":"1ec5","id":1231218,"avatar_url":"https://avatars.githubusercontent.com/u/1231218?v=3","gravatar_id":"","url":"https://api.github.com/users/1ec5","html_url":"https://github.com/1ec5","followers_url":"https://api.github.com/users/1ec5/followers","following_url":"https://api.github.com/users/1ec5/following{/other_user}","gists_url":"https://api.github.com/users/1ec5/gists{/gist_id}","starred_url":"https://api.github.com/users/1ec5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1ec5/subscriptions","organizations_url":"https://api.github.com/users/1ec5/orgs","repos_url":"https://api.github.com/users/1ec5/repos","events_url":"https://api.github.com/users/1ec5/events{/privacy}","received_events_url":"https://api.github.com/users/1ec5/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/labels/feature","name":"feature","color":"0052cc"},{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/labels/iOS","name":"iOS","color":"207de5"},{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/labels/OS%20X","name":"OS X","color":"333333"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-28T04:18:40Z","updated_at":"2016-04-22T19:45:11Z","closed_at":"2016-04-22T19:45:11Z","body":"MapKit has [convenient category methods](https://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Classes/NSValue_Class/#//apple_ref/occ/clm/NSValue/valueWithMKCoordinate:) on NSValue for storing and retrieving `CLLocationCoordinate2D` (called “MKCoordinate” for some reason) and `MKCoordinateSpan` types. We should provide similar methods on NSValue for `CLLocationCoordinate2D` and `MGLCoordinateBounds` at the least. For `CLLocationCoordinate2D`, this is just a matter of moving [some methods](https://github.com/mapbox/mapbox-gl-native/blob/3afdfc15a182707d24d288dcd32166c4a111d732/platform/osx/app/NSValue%2BAdditions.m) from osxapp into a file shared between the iOS and OS X SDKs.\r\n\r\n/cc @friedbunny @tmcw"}}