You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
add support for geodesic polylines (and thus great circles) #1726
This uses a ~100 segment polyline to approximate a curved one and looks good. But we probably want to do this at the C++ level and wrap it in client APIs?
MapKit supports circles; we're tracking an equivalent in #2167. But no, I think support for geodesic polylines on iOS is limited to the legacy Mapbox iOS SDK and possibly some niche libraries.
We don't have an answer for implementing anything "outside of core" at the moment. There's no plugin system, but one could be fashioned out of CocoaPods subspecs. (There's no equivalent concept for Carthage, Fabric, or manual installation.)
@tmcw Nope on Android either. That said, I think there's some confusion about "outside of core" means here. We'd likely want to bake the math part into Core GL (aka C++ level that @incanus talked about above) and then have iOS and Android bindings in the regular SDKs and not standalone libraries that would be distributed via CocoaPods or Maven Central. Make sense?
@jfirebaugh, would geometry.hpp need to support geodesic polylines as a separate geometry type, or could it be treated as a special case of a line string?
Activity
tmcw commentedon Feb 19, 2016
@bleege @1ec5 are there built-in great circle line constructors in MapKit or Google Maps? If not, would it be okay to implement this outside of core?
1ec5 commentedon Feb 19, 2016
MapKit supports circles; we're tracking an equivalent in #2167. But no, I think support for geodesic polylines on iOS is limited to the legacy Mapbox iOS SDK and possibly some niche libraries.
We don't have an answer for implementing anything "outside of core" at the moment. There's no plugin system, but one could be fashioned out of CocoaPods subspecs. (There's no equivalent concept for Carthage, Fabric, or manual installation.)
tmcw commentedon Feb 19, 2016
I'll implement this in Swift as a learning exercise.
bleege commentedon Feb 19, 2016
@tmcw Nope on Android either. That said, I think there's some confusion about "outside of core" means here. We'd likely want to bake the math part into Core GL (aka C++ level that @incanus talked about above) and then have iOS and Android bindings in the regular SDKs and not standalone libraries that would be distributed via CocoaPods or Maven Central. Make sense?
1ec5 commentedon Mar 2, 2016
Correction: MapKit supports geodesic polylines with the MKGeodesicPolyline class. There are some examples at NSHipster.
1ec5 commentedon May 28, 2016
@jfirebaugh, would geometry.hpp need to support geodesic polylines as a separate geometry type, or could it be treated as a special case of a line string?
kkaefer commentedon May 30, 2017
See #6861 / #6940 for a potential alternative.
captainbarbosa commentedon Nov 23, 2017
Is this something that we would still consider implementing?
mikaelhellqvist commentedon Nov 23, 2017
@captainbarbosa I've just pushed a calculation of great circles to GitHub. Feel free to use that: https://github.com/mikaelhellqvist/GreatCircle/tree/master
stale commentedon Dec 3, 2018
This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.