Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segment exploring capability #1

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

matprice
Copy link

I came across your excellent Strava V3 library for a pet project and as luck would have it the segment explorer API I was after was one of the few that wasn't supported.

I added a new API call on FRDStravaClient+Segment : fetchSegmentsWithRegion:activityType:success:failure
I also added a basic explorer into the sample app.

A couple of things to note:
I used a MKCoordinateRegion to specify the bouncing box for the desired segments. This does introduce a dependancy on MapKit but I couldn't think of any better data structure which wouldn't cause confusion?

I had trouble with the decodePolyline method on StravaMap which would crash due to an out of bounds issue.
I introduced a broadly duplicate method that returns an MKPolyline which appears to not have the same issue.

MattPrice added 6 commits August 26, 2014 20:58
Also integrated into sample app but its rough
The existing decode method (decodePolyline:encodedPoints) crashes with
certain segments.
New decode method couples Map to MapKit as it returns a MKPolyline but
seems to work with the segment that was causing crashing.
Also removed filtering by category as this appears to be non functional.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant