Hi All,

I am using getPositionUsingMethodName method to the lat/log using cellular Id but unfortunately it is throwing the below error
"TypeError: Value undefined (result of expression serviceObj.getPositionUsingMethodName) is not object.

Here's the code, do let me know what am I missing?

Thanks in advance,
Amir

PHP Code:
function getLocate1(){
try {
    
serviceObj nokia.device.load("geolocation");
    
alert(serviceObj);
    var 
methodName "Cellular ID";            
    
serviceObj.getPositionUsingMethodName(getresultmethodName,errCallback);
    

catch (
e) { 
    var 
error e.toString();
    
alert(error);
}

}

function 
getresult(position,methodName){ 
        
alert("Latitude:"+position.coords.latitude);
        
alert("Longitude:"+position.coords.longitude);
        
alert(methodName);
}

function 
errCallback(e){
    
alert(e);