AddressFinder iOS Demo
This repo contains an example of how you can use the AddressFinder API in an iOS application.
A demo application is included in the
- Clone the repo and open the Xcode project.
- Sign up at https://addressfinder.nz to get a licence key (it's free!).
- Add your key & secret to the
- Run the application!
The demo application should now work providing you have added your AddressFinder credentials to the .plist.
Adding AddressFinder to your own application
Adding AddressFinder to your own application is an easy task. Here we have provided
AFAutoComplete for you to use in your own iOS projects.
You can simply add a
UITextField to your View, and change the class to
To do more with the address data you can implement the following optional method:
- (void)textField:(AFAutoComplete *)textField didEndEditingWithSelection:(NSDictionary *)result
Here you are provided with the
Full Address and
Pxid (unique identifier) which you can use to call other AddressFinder APIs to get even more information.
To view all available AddressFinder APIs please visit here: https://addressfinder.nz/docs/
In the demo app we have implemented this method and are calling the AddressFinder Address Info API (https://addressfinder.nz/docs/address_info_api/) to retreive line-by-line address information, and extra information such as the latitude and longitude of the address.
AFAutoComplete class uses modified code from th eMPGTextField (https://github.com/gaurvw/MPGTextField) project.
Huge thanks to all contributors in that project