Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Google Local Search and Directions built on HTTPRiot
Objective-C Shell
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
Classes
GKit.xcodeproj
libGHUnitIPhone3_0-0.4.13
.gitattributes
.gitignore
GKit-Info.plist
GKit_Prefix.pch
GLocationTest.m
MainWindow.xib
README.textile
Unit Tests-Info.plist
main.m

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.