OsmSharp / ui

The UI components.
http://osmsharp.com/
GNU General Public License v2.0
138 stars 91 forks source link

Router.Resolve always returns null #235

Open ghost opened 9 years ago

ghost commented 9 years ago

I'm trying to find the nearest routing point to a location for pedestrian navigation and the result of Router.Resolve is always null, regardless of the delta I pass in.

Here is my code:

var start = router.Resolve (Vehicle.Pedestrian, 0.5f, new OsmSharp.Math.Geo.GeoCoordinate(43.085144, -77.67244));

I'm using OsmSharp 4.3.0.1002-beta right now.

xivk commented 9 years ago

Are you sure you have routing data for the coordinate you are requesting?

ghost commented 9 years ago

For one of the points, yes. For the other, it's almost guaranteed to be no since it's the user's current location.