Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get 'parked location' information of Apple Maps's 'find my car' in iOS 10

iOS 10 Apple Map has 'show parked location' and I like this feature.

I want to make app for history of my parked locations, but I can't find APIs for that.

How to get information of parked location which is controlled by Apple Maps?

or How to implement this feature by own not by Apple Maps?

enter image description here

like image 771
dobiho Avatar asked Dec 04 '16 02:12

dobiho


1 Answers

You could try and query the motion framework for all recent motion activities using CMMotionActivityQueryHandler then get all the recent CLVisit objects through CLLocationManger, correlate the data and figure out where the user was when he stopped being in a car.

It won't be perfect, it won't be the same as the Apple Maps one and it depends on whether people have Frequent Locations enabled (they mostly do, they're on by default), but it's the next best thing.

like image 150
Andrew Avatar answered Oct 18 '22 14:10

Andrew