[correction below]

On Jan 19, 2014, at 10:41 PM, // ravi <[email protected]> wrote:
> 
> onwardtrips.pickupPointDetails will let you reference the array with the 
> pickup points, and you can iterate through this array using forEach to 
> process each element:
> 
> onward trips.pickupPointDetails.forEach
> (
>     function(pickupPoint)
>     {
>         console.log(“TripID is “ + element.tripId);
>         ….
>     }
> );
> 

That should be:

        console.log(“TripID is “ + pickupPoint.tripId);

Regards,

        —ravi



> Similarly for dropoffPointDetails.
> 
> Regards,
> 
>       —ravi
> 
> 
> 
>> var onwardtrips = {  
>>    "tripId":"1284792",
>>    "fromCity":"Singapore",
>>    "toCity":"Malacca",
>>     "operatorCode":"SA",
>>     "operatorName":"Starmart Express",
>>      "departTime":"2014-01-20 14:00:00.0",
>>     "busType":"Executive
>>     },  
>>    pickupPointDetails":[
>>       {
>>           "pickupPointId":"78",
>>           "departureTime":"2014-01-20 14:00:00.0",
>>           "pickupPointName":"Golden Mile Tower, Beach Road"
>>       }
>>     ],
>>    "dropoffPointDetails":[
>>          {
>>            "dropOffPointName":"Melaka Sentral",
>>            "dropOffPointId":"1284792"}
>>     ]  
>> } 
>> 
> 
> 
> -- 
> -- 
> Job Board: http://jobs.nodejs.org/
> Posting guidelines: 
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>  
> --- 
> You received this message because you are subscribed to the Google Groups 
> "nodejs" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to