Draw route openstreet maps - openstreetmap

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

Related

Can I implement web mapping application for drawing using leaflet?

I want to implement a web mapping application for drawing using differents functions of topographic computation like for example calculate the "bearing angle" (gisement in frensh).I know that I can draw shapes using leaflet draw plugin but I'm wondering if leaflet provide this functions. Thank you
Leaflet has a distanceTo() method for the Cartesian distance between two points.
Leaflet doesn't have complicated geometric functionalities built in, but there's an excellent Leaflet plugin called Leaflet.GeometryUtil that does: https://github.com/makinacorpus/Leaflet.GeometryUtil. (And here's a link to the plugin's online documentation).
Other plug-ins that might provide useful functionality are found here:
http://leafletjs.com/plugins.html#geoprocessing

Is there a way to highlight roads using leaflet?

I have a complete set of waypoints (beginning, end, every intersection) and I'd like to display this on a map. I don't want to use a routing service and it should be offline.
How can I draw polylines on a map so that they follow the curves of the road?
I'm using leaflet.
Could the data be extracted from a relational database(PostgreSQL) and then convert it into GeoJSON and display on the map by leaflet?
I can't use any paid services either.
Leaflet has a polyline object. MapBox has a nice example how to use it.
I think scai has given you a good example to practice.By the way you can also store the data in JSON format in PostgreSQL.Refer this documentation for more details.JSON Types

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 routes in Leaflet and Wax

I'm using Leaflet and MapBox. I need to develop an api which will show certain city points with labels, and accordingly draw routes between them. I have BlueMarble tiles till certain zoom, and then MapBox Streets. What is the best way to realize that idea? Are circles and paths the best option? Thank you.
I am not sure that you need to create an API for what you want to do.
http://leaflet.cloudmade.com/examples/geojson.html
In the Leaflet tutorials it shows you how to create LineStrings and Points from GeoJson data. So with latitude and longitude coordinates for the Cities you can create Points and use LineStrings to create the routes and add a them as a GeoJson Layer to the map.

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.