I am working on a project where I need to create the similar iOS application to UBER and OLA where the car is moving based on the location. I'm looking for some kind of Library which can make Cars move and take turn smoothly just like OLA. For now I was able to move car from one latitude-longitude to another. But the complex part is how to turn and make sure the car face to front when moving to direction.
Please find the below screenshot for the same.
Actually I had also one requirement in my previous iOS application, so please find the below url for download the code and review it.
Link for iOS Map: https://www.dropbox.com/s/4jj8em1o786qa9j/TestAnnotationMoving.zip?dl=0
Highlight of the code which I had done it.
For accomplished the functionality for moving the car same as Uber iOS application, you need to first calculate the angle between from old location and new location. Please find the below code for how to calculate it.
Then apply the angle to the particular annotation for moving. Please find the below code for the same.
For Google Map
Link for google Map: https://www.dropbox.com/s/a5ts108lh5rr1gd/GoogleMap.zip?dl=0
Create the object of GMSMarker.
Get the angle between two location and apply them for calculating the angle please use the above function.
As in apple map .transform take radian but in google map .rotation takes degree.
Please find the below GIF representation, how it looks on the map.
For accomplished the functionality I had created the .csv file where I had added 1000 records of latitude and longitude.
Note : You get the angle based on the location, so sometimes it happens you does not get the proper angle due to location as it is totally depend on your location.
Hope it works for you!!!