TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Mar 2017 |
Maintained by iDevelopper.
Get the elevation of (almost) any point on Earth
To run the example project, clone the repo, and run pod install
from the Example directory first.
You can also run pod try ElevationAPI
in your Terminal from anywhere.
The easiest way to install it is by copying the following to your project:
ElevationAPI is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "ElevationAPI"
ElevationAPI is a simple class that interfaces with http://www.elevationapi.xyz . It permits you to get the elevation of almost any point on Earth.
Elevation *elevation = [[Elevation alloc] initWithBaseUrl:nil andApiVersion:nil];
By default:
baseURL = "http://elevationapi.xyz/api" and apiVersion = "v1"
NSArray *array = @[@44.582352, @6.695185];
[elevation getElevation:array completionHandler:^(id _Nullable result, NSError * _Nullable error) {
NSLog(@"Result = %@", result);
}];
NSArray *array = @[@[@44.582352, @6.695185],
@[@44.582879, @6.696953],
@[@44.584711, @6.697369],
@[@44.585488, @6.697193],
@[@44.587027, @6.695611]
];
[elevation getElevations:array completionHandler:^(id _Nullable result, NSError * _Nullable error) {
NSLog(@"Result = %@", result);
}];
See Elevation.h where methods are documented and ViewController.m where examples are provided.
A Special Thank to Frank For this great API.
Documentation here.
iDevelopper, [email protected]
ElevationAPI is available under the MIT license. See the LICENSE file for more info.