I need to build an application similar to iPhone built-in maps. I want to give the start and end location and the route directions to reach there along with the distance. Please help me.
You can use the following API to get the directions.You have to give start and endpoint latitude , longitude and it will display the result in an XML format.Then you can draw the route on map.
LINK
Related
There is an application in iPhone called Map. we could give some destination and get the driving direction, distance and the time to that location from it. I need to know how this works ?
Is there any native iPhone frameworks that i could use to get this ? or is it from a Google API that i should use ?
and here's an image of the application
yes, use the mapkit and corelocation frameworks. also check this out
i'm developing an iPhone app which embed a mapView made with mkmapkit. I got two coordinates and I'm tracing the direction between these two points.But I need step by step directions
how can get this step by step directions if any one knows please help me .....
here i am attaching screen shot what i need:http://www.myappdemo.com/Screen%20shot.png
thanks for advance
You can use google API for it.
http://maps.googleapis.com/maps/api/directions/xml?origin=Brooklyn,NY&destination=Manhattan,NY&sensor=false
I've heard that there is no supported forward geocoding in corelocation. Can someone please guide me in the right direction to how I could figure this out? I've tried downloading a third party forward geocoding thing and I couldn't get it to work. Please help.
Try to get the location data from The Google Geocoding API and point the results to the map.
Check validity of address with Geocoding on iPhone
Refer to this link. Once you get coordinates, you can add annotations.
I'm testing GeoLocation on iPhone. The ideia is to have a WebApp that runs on iPhone and, based on my location, gives-me the shortest path to well known spots in my city/country.
My current position os always the starting point.
The end point is always the nearest spot.
Imagine my known spots as all Train Stations in my city.
How can i do such thing? I guess i'll use google maps api but where do i define the spots? How can i say to google to trace the route to the nearest spot?
Thank u ALL:
I hope, you are going to show the route between two latitude & longitude values.The stackoverflow link will help you..
In an iPhone application I'm developing I need to get GPS coordinates to perform some actions based on the values received. Users should have two possibilities of giving the location:
automatically from iPhone build-in GPS
by finding a specific point on a map (Google Maps)
I know how to user CLLocationManager to get current position coordinates and I know how to add Google Maps using JS API. What I would like to know if how can I get coordinates for a specific point on a map that user clicks. Is that possible with UIWebView or is there any other way of getting the values I need?
I'd suggest using MapKit framework (introduced in SDK 3.0) that uses google maps services. MKMapView and other classes will provide all functionality you want without the need to mess with java-script:
Displaying google maps
Showing and tracking user location
Easy converting between view coordinates and geo coordinates (see convertPoint:toCoordinateFromView: and convertCoordinate:toPointToView: functions)
Creating and showing custom map markers
Reverse geocoding
etc. :)