com.signalsoftcorp.lst.client
Interface WLILocation


public interface WLILocation

Defines the methods offered by the Wireless Location Interface (WLI). An example how you could get positions is

    if(response.getResult()!=null)
    {
        System.out.println("Overall failure when getting a response, Result: "+response.getResult());
        System.out.println("ResId: "+response.getResId());
        //AddInfo not always returned
        if(response.getAddInfo()!=null)
        {
            System.out.println("AddInfo: "+response.getAddInfo());
        }
    }
    MLP300Position[] mLP300Positions=response.getMLP300Positions();
    for(int i=0;i<mLP300Positions.length;i++)
    {
        MLP300Msid mLP300Msid=mLP300Positions[i].getMLP300Msid();
        System.out.println("MSID: "+mLP300Msid.getMsid());
        if(mLP300Positions[i].getResult()!=null)
        {
            System.out.println("Failure, Result: "+mLP300Positions[i].getResult());
            System.out.println("ResId: "+mLP300Positions[i].getResId());
            //AddInfo not always returned
            if(mLP300Positions[i].getAddInfo()!=null)
            {
                System.out.println("AddInfo: "+mLP300Positions[i].getAddInfo());
            }
        }
        else
        {
            System.out.println("A correct position is recived,X: "+mLP300Positions[i].getX());
            System.out.println("Y: "+mLP300Positions[i].getY());
        }
    }
 


Method Summary
 MLP300LocationResponse getLocation(MLP300LocationRequest req)
          This method uses the full MLP3.0.0 protocol with all features to get locations.
 WLP10LocationResponse getLocation(java.lang.String clientId, java.lang.String password, WLP10LocationRequest req)
          A simple location request method with the most basic features.
 

Method Detail

getLocation

public MLP300LocationResponse getLocation(MLP300LocationRequest req)
This method uses the full MLP3.0.0 protocol with all features to get locations.
Parameters:
req - The MLP300LocationRequest is used to specify different options and subscribers that should be located.
Returns:
See MLP300LocationResponse. This response will contain positions for the subscribers that were specified in the request.

getLocation

public WLP10LocationResponse getLocation(java.lang.String clientId,
                                         java.lang.String password,
                                         WLP10LocationRequest req)
A simple location request method with the most basic features. If you need more features use the method MLP300LocationResponse getLocation(MLP300LocationRequest req)
Parameters:
clientID - The id assigned to client application using the peer middleware product.
clientPassword - The password assigned to client application using the peer middleware product.
req - The WLP10LocationRequest is used to specify different options and subscribers that should be located.
Returns:
See WLP10LocationResponse. This response will contain positions for the subscribers that were specified in the request.


Copyright © SignalSoft Corp. All Rights Reserved.