Welcome

MapQuest SearchAhead SDK provides a way to easily add auto-complete functionality in any app. Please visit our Getting Started Guide for instructions on how to get up and running with the SDK. The Getting Started Guide walks you through the basics of getting a MapQuest API key and performing a search.

Framework Contents

The MQSearchAhead framework package contains the following files and directories:

  • Changelog - a change log for each release
  • docs - HeaderDocs for this release in both Swift and Objective-C
  • MQSearchAhead.framework - the framework
  • MQSearchAhead.podspec - the podspec file for CocoaPods
  • ReadMe - this ReadMe

Demo App

We provide a demo app for our MQNavigation real-time directions/navigation SDK which includes the use of MQSearchAhead. Our Demo App is available at https://github.com/MapQuest/mq-navigation-sdk-reference-app-ios.

Steps to include the SDK in an Objective-C Project

  • Create an Objective-C project
  • Add Podfile in your project folder:
source 'https://github.com/CocoaPods/Specs.git'
source 'git@github.com:MapQuest/podspecs-ios.git'

platform :ios, '8.0'

target :'<targetName>' do
pod 'MQSearchAhead', '~> 1.0.0'
end
  • Open terminal and run pod install in the project folder
  • Open .xcworkspace from your project folder.
  • In order to use MapQuest APIs and SDKs you will need a MapQuest Key. We use this key to associate your requests to APIs with your account. You can find your existing Keys or create a new one at ‘https://developer.mapquest.com/user/me/apps’.
  • Once you have MapQuest Key, add a new row in Info.plist of your project. Set the Key to MQApplicationKey and set the Value to your MapQuest Key.

Steps to include the SDK in a swift project

  • Create a Swift project
  • Add Podfile in your project folder:
source 'https://github.com/CocoaPods/Specs.git'
source 'git@github.com:MapQuest/podspecs-ios.git'

platform :ios, '8.0'

use_frameworks!

target :'<targetName>' do
pod 'MQSearchAhead', '~> 1.0.0'
end
  • Open terminal and run pod install in the project folder
  • Open .xcworkspace from your project folder.
  • Add import MQSearchAhead in the class you want to use MQSearchAhead SDK
  • In order to use MapQuest APIs and SDKs you will need a MapQuest Key. We use this key to associate your requests to APIs with your account. You can find your existing Keys or create a new one at ‘https://developer.mapquest.com/user/me/apps’.
  • Once you have MapQuest Key, add a new row in Info.plist of your project. Set the Key to MQApplicationKey and set the Value to your MapQuest Key.