{"id":19330217,"url":"https://github.com/pelias/pelias-ios-sdk","last_synced_at":"2025-04-22T22:33:04.811Z","repository":{"id":62450588,"uuid":"47198351","full_name":"pelias/pelias-ios-sdk","owner":"pelias","description":"Interact with Mapzen's search \u0026 geocoding service","archived":false,"fork":false,"pushed_at":"2017-10-13T22:44:42.000Z","size":151,"stargazers_count":8,"open_issues_count":10,"forks_count":9,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-04-14T00:36:02.095Z","etag":null,"topics":["cocoapods","geocode","geocoder","geocoder-library","ios","ios-development","ios-sdk","mapping","pelias","pelias-ios-sdk","reverse-geocode","sdk","search","swift"],"latest_commit_sha":null,"homepage":"https://mapzen.com/products/search/","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pelias.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-12-01T15:28:16.000Z","updated_at":"2022-08-16T08:09:50.000Z","dependencies_parsed_at":"2022-11-01T23:33:11.126Z","dependency_job_id":null,"html_url":"https://github.com/pelias/pelias-ios-sdk","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pelias%2Fpelias-ios-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pelias%2Fpelias-ios-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pelias%2Fpelias-ios-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pelias%2Fpelias-ios-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pelias","download_url":"https://codeload.github.com/pelias/pelias-ios-sdk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223906498,"owners_count":17223046,"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":["cocoapods","geocode","geocoder","geocoder-library","ios","ios-development","ios-sdk","mapping","pelias","pelias-ios-sdk","reverse-geocode","sdk","search","swift"],"created_at":"2024-11-10T02:34:54.913Z","updated_at":"2024-11-10T02:34:55.494Z","avatar_url":"https://github.com/pelias.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pelias iOS SDK [![CircleCI](https://circleci.com/gh/pelias/pelias-ios-sdk.svg?style=svg)](https://circleci.com/gh/pelias/pelias-ios-sdk)\n\nThis is the iOS SDK wrapper and convenience framework to make interacting with a\nPelias Geocoder instance (https://github.com/pelias/pelias) easier / faster /\nmore better for iOS developers.\n\n### Recommended Installation Method\n\nWe recommend using CocoaPods (https://cocoapods.org/) to install the SDK. We have\ntwo currently supported subspecs: Core and MapkitExtensions. Core only relies on\nFoundation being available. MapkitExtensions relies on CoreLocation, MapKit, and\nthe iOS 9.0+ Contacts Framework being available (and will add these to your project\nif you install using CocoaPods).\n\n### Example Usage\nHere are some examples which show how easy it is to use the SDK. Be sure to read the [documentation](http://cocoadocs.org/docsets/Pelias/1.0.1/) to see all the properties you can customize when making requests.\n\n#### Search\nFind a place by searching for an address or name:\n\n```swift\nlet text = \"cafe\"\nlet config = PeliasSearchConfig(searchText: text, completionHandler: { (searchResponse) -\u003e Void in\n  let responseDictionary = searchResponse.parsedResponse?.parsedResponse\n  // update UI based on responseDictionary\n})\n_ = PeliasSearchManager.sharedInstance.performSearch(config)\n```\n\n#### Autocomplete\nGet real-time result suggestions with autocomplete:\n\n```swift\nlet text = \"cafe\"\nlet point = GeoPoint.init(latitude: 40.74433, longitude: -73.9903)\nlet config = PeliasAutocompleteConfig(searchText: text, focusPoint: point, completionHandler: { (searchResponse) -\u003e Void in\n  let responseDictionary = searchResponse.parsedResponse?.parsedResponse\n   // update UI based on responseDictionary\n})\n_ = PeliasSearchManager.sharedInstance.autocompleteQuery(config)\n```\n\n#### Reverse\nFind what is located at a certain coordinate location:\n\n```swift\nlet point = GeoPoint.init(latitude: 40.74433, longitude: -73.9903)\nlet config = PeliasReverseConfig(point: point, completionHandler: { (searchResponse) -\u003e Void in\n  let responseDictionary = searchResponse.parsedResponse?.parsedResponse\n  // update UI based on responseDictionary\n})\n_ = PeliasSearchManager.sharedInstance.reverseGeocode(config)\n```\n\n#### Place\nGet rich details about a place:\n\n```swift\nlet gids = [\"gid\", \"anotherGid\"]\nlet config = PeliasPlaceConfig(gids: gids, completionHandler: { (searchResponse) -\u003e Void in\n  let responseDictionary = searchResponse.parsedResponse?.parsedResponse\n  // update UI based on responseDictionary\n})\n_ = PeliasSearchManager.sharedInstance.placeQuery(config)\n```\n### Sample App\nThe SDK ships with a [sample app](https://github.com/pelias/pelias-ios-sdk/tree/master/SampleApp) which you can run directly within XCode\n\n### Reporting Issues\nWe welcome issues to be reported using the Github Issue tracker. However please\nreview the currently open issues before reporting a bug to avoid issue tracker churn.\n\n### Contributing\nPlease send any and all PRs you want! We do enforce good test coverage,\nso please make sure all your new code is covered, and that tests pass locally before\nsubmitting a pull request! \n\n### Changelog\nPlease refer to the CHANGES.md document for major change history of the SDK.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpelias%2Fpelias-ios-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpelias%2Fpelias-ios-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpelias%2Fpelias-ios-sdk/lists"}