Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Google Local Search and Directions built on HTTPRiot

branch: master
README.textile

GKit : Google Local Search + Directions and Routing. Built on HTTPRiot (http://github.com/caged/httpriot)

Requires GHUnit for Tests.

Usage

// Local Search

CLLocationCoordinate2D myHouse;
myHouse.latitude	= 33.760174;
myHouse.longitude = -84.332780;
[GLocation getLocalResultsForLocation:myHouse withQuery:@"Corner Tavern" withDelegate:self];

// Directions

CLLocationCoordinate2D myHouse;

myHouse.latitude	= 33.760174;
myHouse.longitude = -84.332780;

CLLocationCoordinate2D cornerTavern;
cornerTavern.latitude	= 33.679771;
cornerTavern.longitude = -84.440544;

[GDirection getDirectionsFromLocation:myHouse toLocation:cornerTavern withDelegate:self];

// Routing (Returns geo locations for drawing route polylines)

CLLocationCoordinate2D myHouse;
myHouse.latitude	= 33.760174;
myHouse.longitude = -84.332780;

CLLocationCoordinate2D cornerTavern;
cornerTavern.latitude	= 33.679771;
cornerTavern.longitude = -84.440544;

[GRoute getRouteFromLocation:myHouse toLocation:cornerTavern withDelegate:self];
Something went wrong with that request. Please try again.