{"id":25982424,"url":"https://github.com/rmnblm/graphhoppergeocoder","last_synced_at":"2026-05-18T05:44:56.021Z","repository":{"id":56912948,"uuid":"89567465","full_name":"rmnblm/GraphHopperGeocoder","owner":"rmnblm","description":"🔍 The GraphHopper Geocoding API wrapped in an easy-to-use Swift framework. ","archived":false,"fork":false,"pushed_at":"2017-05-11T15:51:58.000Z","size":51,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-04T11:40:16.258Z","etag":null,"topics":["geocoding","graphhopper","openstreetmap","swift"],"latest_commit_sha":null,"homepage":"https://www.graphhopper.com","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/rmnblm.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":"2017-04-27T07:15:16.000Z","updated_at":"2017-05-06T08:33:21.000Z","dependencies_parsed_at":"2022-08-20T20:20:49.741Z","dependency_job_id":null,"html_url":"https://github.com/rmnblm/GraphHopperGeocoder","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmnblm%2FGraphHopperGeocoder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmnblm%2FGraphHopperGeocoder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmnblm%2FGraphHopperGeocoder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmnblm%2FGraphHopperGeocoder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rmnblm","download_url":"https://codeload.github.com/rmnblm/GraphHopperGeocoder/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241998092,"owners_count":20055222,"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":["geocoding","graphhopper","openstreetmap","swift"],"created_at":"2025-03-05T09:23:49.716Z","updated_at":"2025-11-01T00:03:25.113Z","avatar_url":"https://github.com/rmnblm.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GraphHopperGeocoder\n[![](http://img.shields.io/badge/ios-8.0+-FC3159.svg)]()\n[![](http://img.shields.io/badge/swift-3.0+-FD9426.svg)]()\n[![](https://img.shields.io/badge/cocoapods-compatible-53D769.svg)](https://github.com/cocoapods/cocoapods)\n[![](https://img.shields.io/badge/license-MIT-lightgrey.svg)](http://mit-license.org)\n\n🔍 The GraphHopper Geocoding API wrapped in an easy-to-use Swift framework.\n\nThe Geocoding API is part of the [GraphHopper Directions API](https://graphhopper.com/#directions-api). Geocoding is the process of finding an address for your geo location or a coordinate for an address. With our API you have a fast and solid way to geocode.\n\n## Installation\n\nUse [CocoaPods](http://cocoapods.org/) to install the framework. Add this to your Podfile:\n\n``` ruby\npod 'GraphHopperGeocoder'\n```\n\nThen run the following command:\n\n```\n$ pod install\n```\n\nIn order to use the framework, you'll also need a [GraphHopper Access Token](https://graphhopper.com/dashboard/#/api-keys). You can either set your access token in the `Info.plist` (Key is GraphHopperAccessToken) or pass it as an argument to the initializer of the `Geocoder` class.\n\n## Example\n\n### Basics\n\nSetup the `Geocoder` class\n\n``` swift\nimport CoreLocation\nimport GraphHopperGeocoder\n\n// use this\nlet geocoder = Geocoder(accessToken: \"YOUR ACCESS TOKEN\")\n// or if you have set your access token in the Info.plist\nlet geocoder = Geocoder()\n```\n\n### Forward geocoding options\n\nConfigure the forward geocoding options\n\n``` swift\nlet options = ForwardGeocodeOptions(query: \"HSR Rapperswil\")\noptions.limit = 3\n```\n\n\n### Reverse geocoding options\n\nConfigure the reverse geocoding options\n\n```swift\nlet coordinate = CLLocationCoordinate2D(latitude: 47.222943, longitude: 8.817238649765951)\nlet options = ReverseGeocodeOptions(coordinate: coordinate)\n```\n\n### Geocode request\n\nMake the async request by calling the `calculate(_:completionHandler)` method and passing the options.\n\n```swift\nlet task = geocoder.geocode(options, completionHandler: { (placemarks, error) in\n    placemarks?.forEach({ placemark in\n        print(placemark.name)\n        print(\"\\(placemark.coordinate.latitude), \\(placemark.coordinate.longitude)\")\n        print(placemark.street)\n        print(placemark.postalCode)\n        print(placemark.city)\n        print(placemark.state)\n        print(placemark.country)\n    })\n})\n```\n\n## More Information\n\nFor more information, consider reading the [official documentation](https://graphhopper.com/api/1/docs/#geocoding-api) to learn more about the options and the result.\n\n## License\n\nThis project is released under the [MIT license](LICENSE).\n\n## About\n\n\u003cimg src=\"images/HSRLogo.png\" width=\"184\" /\u003e\n\n​The GraphHopper Geocoder Swift Framework is crafted with :heart: by [@rmnblm](https://github.com/rmnblm) and [@iphilgood](https://github.com/iphilgood) during the Bachelor thesis at [HSR University of Applied Sciences](https://www.hsr.ch) in Rapperswil.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frmnblm%2Fgraphhoppergeocoder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frmnblm%2Fgraphhoppergeocoder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frmnblm%2Fgraphhoppergeocoder/lists"}