Quantcast
Channel: GMap.NET - Great Maps for Windows Forms & Presentation
Viewing all articles
Browse latest Browse all 3384

Commented Unassigned: GetRoute returning 'Null' [16123]

$
0
0

Following code:

PointLatLng start1 = new PointLatLng(51.61055, 8.34348);
PointLatLng end1 = new PointLatLng(51.5042742, 5.4458191);
MapRoute route1 = GMap.NET.MapProviders.GoogleMapProvider.Instance.GetRoute(start1, end1, false, false, 15);

will return 'Null' in route1.....

It worked perfectly until a little while ago..

Somebody knows how to solve this?
Comments: My work-around for now, which is working for me: GDirections ss; var xx = GMapProviders.GoogleMap.GetDirections(out ss, start, end, false, false, false, false, false); GMapRoute r = new GMapRoute(ss.Route, "My route"); ....and case closed for me (for now)...

Viewing all articles
Browse latest Browse all 3384

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>