function findMeetingPoint(roomId, latlng) { 
    for (var i = 0; i < rooms[roomId]['meeting_points'].length; i++) {
        if (rooms[roomId]['meeting_points'][i].latlng.lat == latlng.lat
            && rooms[roomId]['meeting_points'][i].latlng.lng == latlng.lng)
            return i;    
    }
    return -1;
}
//find a meetingPoint of the room X given his latitude and longitude
find a meetingPoint of the room X given his latitude and longitude
find a meetingPoint of the room X given his latitude and longitude
function findMeetingPoint(roomId, latlng) { 
    for (var i = 0; i < rooms[roomId]['meeting_points'].length; i++) {
        if (rooms[roomId]['meeting_points'][i].latlng.lat == latlng.lat
            && rooms[roomId]['meeting_points'][i].latlng.lng == latlng.lng)
            return i;    
    }
    return -1;
}
function findMeetingPoint ( roomId , latlng ) { for ( var i = 0 ; i < rooms [ roomId ] [ 'meeting_points' ] . length ; i ++ ) { if ( rooms [ roomId ] [ 'meeting_points' ] [ i ] . latlng . lat == latlng . lat && rooms [ roomId ] [ 'meeting_points' ] [ i ] . latlng . lng == latlng . lng ) return i ; } return - 1 ; }
find a meetingPoint of the room X given his latitude and longitude
find a meetingPoint of the room X given his latitude and longitude