{"id":1384,"url":"https://github.com/mabdulsubhan/MSFlightMapView","last_synced_at":"2025-08-02T04:31:45.655Z","repository":{"id":49831741,"uuid":"118114937","full_name":"mabdulsubhan/MSFlightMapView","owner":"mabdulsubhan","description":"MSFlightMapView allows you to easily add and animate geodesic flights to Google map","archived":false,"fork":false,"pushed_at":"2019-09-25T07:16:54.000Z","size":63301,"stargazers_count":52,"open_issues_count":1,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-29T13:42:18.803Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mabdulsubhan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-19T11:01:26.000Z","updated_at":"2024-02-20T03:32:26.000Z","dependencies_parsed_at":"2022-09-07T16:30:17.769Z","dependency_job_id":null,"html_url":"https://github.com/mabdulsubhan/MSFlightMapView","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mabdulsubhan%2FMSFlightMapView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mabdulsubhan%2FMSFlightMapView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mabdulsubhan%2FMSFlightMapView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mabdulsubhan%2FMSFlightMapView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mabdulsubhan","download_url":"https://codeload.github.com/mabdulsubhan/MSFlightMapView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228438935,"owners_count":17920017,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-01-05T20:15:45.215Z","updated_at":"2024-12-06T08:31:07.075Z","avatar_url":"https://github.com/mabdulsubhan.png","language":"Swift","funding_links":[],"categories":["Maps"],"sub_categories":["Other Hardware"],"readme":"# MSFlightMapView\n[![CocoaPods](https://img.shields.io/cocoapods/p/MSFlightMapView.svg)](https://cocoapods.org/pods/MSFlightMapView)\n[![CocoaPods](https://img.shields.io/cocoapods/v/MSFlightMapView.svg)](http://cocoapods.org/pods/MSFlightMapView)\n[![Twitter](https://img.shields.io/badge/Twitter-@ThisIsSubhan-blue.svg?style=flat)](http://twitter.com/ThisIsSubhan)\n\n## Demo\n\u003cimg src=\"./msflightViewdemo.gif\" width=\"30%\"\u003e\n\n## Requirements\n\n- iOS 10.0+\n- Xcode 9.0+\n\n## Installation\n\nJust add the MSFlightMapView folder to your project.\n\nor use [CocoaPods](https://cocoapods.org):\n```\npod 'MSFlightMapView'\n```\n\n## Usage\n\n### Flights Creation\n\nTo use MSFlightMapView, we would be needing to create MSFlight objects. It can be created in the following ways:\n\n#### 1. MSFlight\n\n`MSFlight(withFirstLocation: London, withSecondLocation: Paris)`\n\nMSFlight are single leg flights having a destination and an arrival.\nWe can set the following attributes of a flight :\n\n`firstLocation` - The Departure of the flight\n\n`secondLocation` - The Arrival of the flight\n\n`iconImage` - The marker image\n\n`iconColor` - The color of the marker\n\n`pathColor` - The path color between departure and arrival\n\n`markerColor` - The color of markers of departure and arrival\n\n\u003e `MSFlight` can be further extended to connecting flights by using `.connecting(toLocation: CLLocationCoordinate2D)` to either a `MSFlight` object or an array of `MSFlight`\n\n\n#### 2. MSMultiLegFlight\n\n`MSMultiLegFlight(withLocations: [London, Berlin, Ankara, Moscow])`\n\n`MSMultiLegFlight` are connecting flights between a number of locations. It generates `MSFlight` objects so it can be further customised as mentioned above.\n\n### Map Creation\n\n`MSFlightMapView` is a subclass of `GMSMapView`. We can set and animate flights on the map just by using :\n\n**For MSFlight**\n```\nlet flight = MSFlight(withFirstLocation: London, withSecondLocation: Berlin).connecting(toLocation: Moscow)\nmapView.flights = [flight]\n```\n\n**For MSMultiLegFlight**\n```\nlet flightPlan = MSMultiLegFlight(withLocations: [London, Berlin, Ankara, Moscow])\nmapView.flights = flightPlan.flights\n```\n\n## Licence\n\nMSFlightMapView is released under the MIT license.\nSee [LICENSE](./LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmabdulsubhan%2FMSFlightMapView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmabdulsubhan%2FMSFlightMapView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmabdulsubhan%2FMSFlightMapView/lists"}