Hi,

--- "Julia A. Case" <[EMAIL PROTECTED]> wrote:
> 
> I have the tables created, to start I'm just working on a simple
> Portlet
> that calculates the distance between 2 zip codes.  So, I have a
> table
> with the zipcodes and their longitude and latitude.  I want to do a
> query on the table with the 2 zipcodes get the data and calculate
> the
> distance.  I created a ZipcodMapBuilder class, but I'm not quite
> sure
> how to use it.  

Did you do this creation through torque?  If you have, then you just
need to call the Zipcod(e)Peer.doSelect method with a criteria
specifying the zipcode you wish to find.  It will generate the
correct mapbuilder code for you and call it behind the scenes.

One gotcha I had was that you need to make sure it is in the
"default" database in xml for torque - this make torque/turbine look
in the same db as your turbine user etc tables.

If you created the map manually - do you really need to - are your
requirements that complex - try torque.

HTH,
Chris

=====
http://www.soccer2002.org.uk - join in and win CA$H!

__________________________________________________
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards�
http://movies.yahoo.com/

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to