Re: [OpenMap Users] path finding

From: Don Dietrick <dfdietrick_at_gmail.com>
Date: Tue, 1 Jun 2010 18:15:30 -0400

Hello,

I think you want to start with the com.bbn.openmap.layer.shape.MultiRoadLayer, and after the data is loaded, you can call getPathOnRoad(...) to get the Route between the locations. That method takes two different lat/lon locations.

You can get more information about handling mouse events here:

http://openmap.bbn.com/mailArchives/openmap-users/2004-09/3288.html

You'll probably need to extend MultiRoadLayer to get the behavior you want.

Hope this helps,

Don


On May 28, 2010, at 3:55 PM, kioto mitsubisi wrote:

> Hello,
> First of all, I subscribed the openmap-users mail list by sending necessary e-mail to majdart, and completed necessary actions however the mails I send do not appear in the mailing list, so I decided to send you this e-mail both to ask you about this situation and other question which is written below. If you can help me, I will really appriciate it.
>
> I couldn't understand how to use RoadFinder to find a path between two points. What I will get LatLon point of end point by clicking with mouse and start point is stored in the program which comes from users GPS data. I need to find the path between user's location and clicked location. Can anyone explain how to do this in a very simple way? I have a ShapeLayer object and shp,dbf, ssx, shx files.
> Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. Learn more.

--
[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Tue Jun 01 2010 - 18:16:31 EDT

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:09 EDT