Show path from Current Location Tutorial.
APPLE integrate new feature to show route.
Requirement -> OS version should be
IOS6
or later.
Show route from current location to
YourCoordinate
in iOS6
-(void)showMapRouteFromCurrentLocation
{
CLLocationCoordinate2D currentUserCoordinate = YourCoordinate;
//currentUserCoordinate.latitude= +53.509980;
//currentUserCoordinate.longitude = -0.133700;
MKPlacemark *place = [[MKPlacemark alloc]
initWithCoordinate:currentUserCoordinate
addressDictionary:nil];
MKMapItem *mapItem = [[MKMapItem alloc]initWithPlacemark:place];
NSDictionary *routeOption = [[NSDictionary alloc] initWithObjectsAndKeys:MKLaunchOptionsDirectionsModeDriving,MKLaunchOptionsDirectionsModeKey, nil];
[mapItem openInMapsWithLaunchOptions:routeOption];
}
Follow this link link http://stackoverflow.com/questions/13742305/to-show-the-route-between-mutliple-points-in-iphone-sdk/13744222#13744222
GOOGLE
Draw Path between Two address
Draw Path between Two LatLong
To get detail from Address
To get detail from LatLong
Get Map Image
http://maps.googleapis.com/maps/api/staticmap?center=26.9260,75.8235&zoom=11&size=200x200&sensor=false
Other Link
Comments
Post a Comment