This is a migrated thread and some comments may be shown as answers.

Question about adding routing to a map

3 Answers 180 Views
Map
This is a migrated thread and some comments may be shown as answers.
Warren
Top achievements
Rank 1
Warren asked on 25 Nov 2015, 06:52 PM

Right now I am using open street map to show a map in the control just like your example online. And this works fine. I am now looking into adding routing on the map. I read the website that it only supports Bing maps for this.Is this for WPF only and not ASP.NET? I also saw a page on your site using layers and had a line drawn over a road to show a walking tour. The routes I want to show from one location to the other are already determined and I can supply the locations for the route. So to me the best scenario is to supply this if I can. Do you have a demo showing how I can do this to show the route on a map from point A to point B?

Thanks so much!

Warren

 

3 Answers, 1 is accepted

Sort by
0
Ianko
Telerik team
answered on 26 Nov 2015, 07:26 AM
Hello Warren,

RadMap integration with Bing layer is an out-of-the-box feature. You can test it via this online demo—http://demos.telerik.com/aspnet-ajax/map/examples/functionality/tile-layers/defaultcs.aspx—by using the dropdown and choose Bing in the configuration area. Also you can find out how to configure the Bing service in our online documentation—http://docs.telerik.com/devtools/aspnet-ajax/controls/map/functionality/tile-layers#using-bing-service-with-radmap.

As for drawing route, I assume you are referring to this demo—http://demos.telerik.com/aspnet-ajax/map/examples/functionality/cross-layer-integration/defaultcs.aspx. The code there best shows how to use GeoJSON data to draw a route. However, getting the GeoJSON of the route is something that should come from a third-party service and its integration is something that is not shown in an example. Such matter should be handled as per to exact application requirements and service capabilities by the application's developer.

Regards,
Ianko
Telerik
0
Warren
Top achievements
Rank 1
answered on 30 Nov 2015, 06:10 PM

Thanks for the reply and help. I wish I could see the json file used for the route. I prefer to go that way if I can. Are they all a standard format? That's what I would like to see so I can try it myself.

 

Warren

 

0
Ianko
Telerik team
answered on 01 Dec 2015, 06:29 AM
Hello Warren,

GeoJSON is standardized, you can refer to this page—http://geojson.org/. It is based on JSON literal structure.

As for the used GeoJSON in the demo, there is a link in the description from where you can download the file—http://demos.telerik.com/aspnet-ajax/map/examples/functionality/cross-layer-integration/Content/routes.json.

Regards,
Ianko
Telerik
Tags
Map
Asked by
Warren
Top achievements
Rank 1
Answers by
Ianko
Telerik team
Warren
Top achievements
Rank 1
Share this question
or