Find Route Between Two Points(PushPin) - Windows Phone - bing-maps

I have coordinates of two different pushpins and I want to draw the route between them?

see this example of using the directions task:
http://www.playingwith.net/2011/07/integrate-bing-maps-directions-in-your-wp7-app/

Related

iOS 7 MKMapView Does not provide a route between two points

Hi there am using the Map Kit, i did add several points based on Lat & long Data, so far, it's all good. I Did try to implement the MKDirections methods but i get this response: A route to the destination from its nearest road cannot be determined, NSLocalizedDescription=Directions Not Available, MKDirectionsErrorCode=7, MKErrorGEOError=-403
My question is: If i somehow own the data of those routes between two points, is there a way to draw the route using the MapKit instead of asking apple to provide a route?
thanks in advance for your responses
Yes, you can draw a polyline, if you know the sequence of lat,lon coordinates along the road from start to destination.
Apples BreadCrumbs demo code shows how to do that.

Route following simulation in iOS

I am working on moving a map annotation along a route that has been mapped out in iOS, but I wanted it to follow the path given for the directions. So to be clear, I want a simulation of the user following the route of the map without actually doing the route. I have tried doing research and yes, I have seen the breadcrumb tutorial but I am really unsure how to go about following a route as described. Is there some way to get the map with the route broken down into points/data?
Any help or links are appreciated.
Change and animate the coordinates of the annotation along an array of coordinates.
But this requires that you have the "route" as sequence of coordinates. The apple route you will not get as coordinates.
You could use OpenStreetMap to get a vector based route (coordinates).

Draw route openstreet maps

I have several geo points witch I want to use to draw a route using the openstreet maps. Where can I start is there any documentation for this map ?
Thanks
There are several ways to plot routes on OSM. JXMapViewer is good if you're coding in java and should allow you to do whatever you want.
http://wiki.openstreetmap.org/wiki/JXMapViewer2

Draw Lines between pins with iphones Map Kit

Is it possible to draw custom lines between two or more locations with the MapKit? Or do I need a custom overlay? Is there some kind of tutorial about this topic?
I have a working "Google Maps Application" and now I want to connect my locations with straight lines.
http://maps.google.com/maps/api/staticmap?size=400x400&zoom=13&path=color:0xff0000ff|weight:5|40.737102,-73.990318|40.749825,-73.987963&markers=color%3ablue|label%3aS|40.737102,-73.990318|40.749825,-73.987963&sensor=false
You can draw lines in map using MKPolyline.
See this link
http://spitzkoff.com/craig/?p=136
You Can Draw Lines Between Two pins
See The Link:
mapkit route

polyines on iphone

I want to know how to display the route between two Points on
map using mapkit framework in iphone
Is there any Api that can used to display the route between two
Pins. If not Is Polyines is standard to show route between two
pins.Can we display the route on Map with the help of polyines on iphone
or is it dummy route between two points.
Thanks in advance
There's a nice sample on how to accomplish this with a custom MKAnnotationView here: http://spitzkoff.com/craig/?p=108
You can find a working example at http://github.com/leviathan/nvpolyline This solution is especially targeted at iPhone OS versions prior to v.4.0
Although it can also be used in v.4.0 Hope this helps.
You could use Quartz to draw your lines.
Get the context of your map view
Move to the point of your first pin
Add a point to the point of your second pin
Configure your stroke (line-style, width, color)
Draw
A good tutorial about drawing with Quartz:
http://www.cocoadevcentral.com/d/intro_to_quartz_two/
If you do this you will have your app rejected. You are not allowed to use the Google Map tiles (and thus MapKit) for routing.
You can use one of the open map frameworks, they may also support API's for drawing routes atop them. I would explore that before figuring out how to draw your own polylines.