https://github.com/illabo/iireversenominatim
https://github.com/illabo/iireversenominatim
geocodejson nominatim reverse-geocoding
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/illabo/iireversenominatim
- Owner: illabo
- License: wtfpl
- Created: 2020-05-16T11:04:37.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-16T14:17:29.000Z (about 6 years ago)
- Last Synced: 2025-10-23T09:56:27.011Z (8 months ago)
- Topics: geocodejson, nominatim, reverse-geocoding
- Language: Swift
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# IIReverseNominatim
## Yet another Nominatim reverse geocoder. The little difference from others that it requests data in GeocodeJSON format.
Nothing special here.
```swift
let nominatim = IIReverseNominatim()
nominatim.reverseGeocode(lat: 52.2620898, lon: 104.3203629){
switch $0 {
case .success(let resp):
guard let s = resp.features, s.count > 0 else { return }
print(geocoding?.label ?? geocoding?.name ?? "")
case .failure(let e):
print(e)
}
}
```
### To install
* with Cocoa Pods:
```ruby
pod 'IIReverseNominatim'
```
* with Swift PM:
```swift
.package(url: "https://github.com/illabo/IIReverseNominatim.git", from: "0.1.1")
```